Let's divide 84747790 by 504
We're looking to find how many times 504 goes into 84747790.

On to step 1:
504 can be fit into 8 0 times, resulting in a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Append the next digit (4) from the dividend to 8 and continue with: 84 / 504

On to step 2:
The number 504 fits into 84 0 times, leaving a remainder of 84.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 84 to get 84.
Fetch the next digit (7) from the dividend, attach it to 84 and continue: 847 / 504

Step 3:
504 goes into 847 1 times with a remainder of 343.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 504 from 847 and we're left with 343.
Take the next digit (4) from the dividend and append it to 343, then repeat: 3434 / 504

Let's proceed to step 4:
3434 divided by 504 is 6 with a remainder of 410.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
If we subtract 3024 from 3434, we get 410.
Fetch the next digit (7) from the dividend, attach it to 410 and continue: 4107 / 504

Let's proceed to step 5:
504 goes into 4107 8 times with a remainder of 75.
Use 8 as the next digit of our solution. 
Result so far: 168.0
If we subtract 4032 from 4107, we get 75.
Include the next digit (7) from the dividend after 75, then repeat: 757 / 504

Moving on to step 6:
The number 504 fits into 757 1 times, leaving a remainder of 253.
The next digit of our result is 1. 
Result so far: 1681.0
Subtracting 504 from 757 leaves us with 253.
Grab the next digit (9) from the dividend, add it to 253, then carry on: 2539 / 504

Let's proceed to step 7:
2539 divided by 504 is 5 with a remainder of 19.
Record the quotient 5 as the next digit in the result. 
Result so far: 16815.0
Deduct 2520 from 2539 and we're left with 19.
Include the next digit (0) from the dividend after 19, then repeat: 190 / 504

Going ahead to step 8:
504 goes into 190 0 times with a remainder of 190.
Record the quotient 0 as the next digit in the result. 
Result so far: 168150.0
If we take 0 away from 190, we end up with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Advancing to step 9:
504 goes into 1900 3 times with a remainder of 388.
Put 3 as the next digit of the answer. 
Result so far: 168150.3
Subtracting 1512 from 1900 leaves us with 388.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3880, and continue the process.

Going ahead to step 10:
If we divide 3880 by 504, we get 7 and a remainder of 352.
Use 7 as the next digit of our solution. 
Result so far: 168150.37
Subtract 3528 from 3880 to get 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

Let's proceed to step 11:
The number 504 fits into 3520 6 times, leaving a remainder of 496.
Record the quotient 6 as the next digit in the result. 
Result so far: 168150.376
If we subtract 3024 from 3520, we get 496.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4960, and continue the process.

Moving on to step 12:
The number 504 fits into 4960 9 times, leaving a remainder of 424.
The number 9 becomes the next digit in our result. 
Result so far: 168150.3769
Subtract 4536 from 4960 to get 424.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4240, and continue the process.

Advancing to step 13:
4240 divided by 504 is 8 with a remainder of 208.
The next digit of our result is 8. 
Result so far: 168150.37698
Subtracting 4032 from 4240 leaves us with 208.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2080, and continue the process.

Advancing to step 14:
If we divide 2080 by 504, we get 4 and a remainder of 64.
Write down 4 as next digit of the result. 
Result so far: 168150.376984
Subtract 2016 from 2080 to get 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Advancing to step 15:
The number 504 fits into 640 1 times, leaving a remainder of 136.
The next digit of our result is 1. 
Result so far: 168150.3769841
If we take 504 away from 640, we end up with 136.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

Advancing to step 16:
504 goes into 1360 2 times with a remainder of 352.
The next digit of our result is 2. 
Result so far: 168150.37698412
Deduct 1008 from 1360 and we're left with 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

The final result is 168150.37698412 with a remainder of 3.52e-07.