We're dividing 504340 by 3 
We want to figure out the number of times 504340 can be divided by 3.

Step 1:
3 can be fit into 5 1 times, resulting in a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 3 from 5 to get 2.
Bring next digit (0) of the dividend behind the 2 and repeat the process: 20 / 3

Going ahead to step 2:
3 goes into 20 6 times with a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
Deduct 18 from 20 and we're left with 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 3

Step 3:
The number 3 fits into 24 8 times, leaving a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 168.0
Subtract 24 from 24 to get 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 3

On to step 4:
3 can be fit into 3 1 times, resulting in a remainder of 0.
The next digit of our result is 1. 
Result so far: 1681.0
If we subtract 3 from 3, we get 0.
Append the next digit (4) from the dividend to 0 and continue with: 4 / 3

On to step 5:
3 can be fit into 4 1 times, resulting in a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 16811.0
Deduct 3 from 4 and we're left with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 3

On to step 6:
3 goes into 10 3 times with a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 168113.0
If we take 9 away from 10, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 7:
When dividing 10 by 3, we get 3 with a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 168113.3
The remainder is 1 after subtracting 9 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 8:
3 goes into 10 3 times with a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 168113.33
Deduct 9 from 10 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

After the division, we end up with 168113.33 and a remainder of 0.001.