We look at the division of 18737871 by 504 
We want to divide 18737871 by 504.

Moving on to step 1:
1 divided by 504 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 504

Step 2:
The number 504 fits into 18 0 times, leaving a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 18 to get 18.
Append the next digit (7) from the dividend to 18 and continue with: 187 / 504

Step 3:
504 goes into 187 0 times with a remainder of 187.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 187 leaves us with 187.
Bring next digit (3) of the dividend behind the 187 and repeat the process: 1873 / 504

Going ahead to step 4:
The number 504 fits into 1873 3 times, leaving a remainder of 361.
The next digit of our result is 3. 
Result so far: 3.0
Subtract 1512 from 1873 to get 361.
Take the next digit (7) from the dividend and append it to 361, then repeat: 3617 / 504

Moving on to step 5:
When dividing 3617 by 504, we get 7 with a remainder of 89.
Record the quotient 7 as the next digit in the result. 
Result so far: 37.0
If we take 3528 away from 3617, we end up with 89.
Bring next digit (8) of the dividend behind the 89 and repeat the process: 898 / 504

Step 6:
504 goes into 898 1 times with a remainder of 394.
The next digit of our result is 1. 
Result so far: 371.0
Subtracting 504 from 898 leaves us with 394.
Append the next digit (7) from the dividend to 394 and continue with: 3947 / 504

Moving on to step 7:
The number 504 fits into 3947 7 times, leaving a remainder of 419.
The number 7 becomes the next digit in our result. 
Result so far: 3717.0
Deduct 3528 from 3947 and we're left with 419.
Bring next digit (1) of the dividend behind the 419 and repeat the process: 4191 / 504

Step 8:
When dividing 4191 by 504, we get 8 with a remainder of 159.
Record the quotient 8 as the next digit in the result. 
Result so far: 37178.0
If we subtract 4032 from 4191, we get 159.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1590, and continue the process.

Moving on to step 9:
504 goes into 1590 3 times with a remainder of 78.
Write down 3 as next digit of the result. 
Result so far: 37178.3
Subtracting 1512 from 1590 leaves us with 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Step 10:
When dividing 780 by 504, we get 1 with a remainder of 276.
Record the quotient 1 as the next digit in the result. 
Result so far: 37178.31
The remainder is 276 after subtracting 504 from 780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2760, and continue the process.

On to step 11:
If we divide 2760 by 504, we get 5 and a remainder of 240.
Put 5 as the next digit of the answer. 
Result so far: 37178.315
The remainder is 240 after subtracting 2520 from 2760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Advancing to step 12:
If we divide 2400 by 504, we get 4 and a remainder of 384.
Write down 4 as next digit of the result. 
Result so far: 37178.3154
If we subtract 2016 from 2400, we get 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Step 13:
3840 divided by 504 is 7 with a remainder of 312.
Record the quotient 7 as the next digit in the result. 
Result so far: 37178.31547
If we subtract 3528 from 3840, we get 312.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3120, and continue the process.

Moving on to step 14:
If we divide 3120 by 504, we get 6 and a remainder of 96.
Write down 6 as next digit of the result. 
Result so far: 37178.315476
If we take 3024 away from 3120, we end up with 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Moving on to step 15:
960 divided by 504 is 1 with a remainder of 456.
Put 1 as the next digit of the answer. 
Result so far: 37178.3154761
The remainder is 456 after subtracting 504 from 960.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4560, and continue the process.

Going ahead to step 16:
The number 504 fits into 4560 9 times, leaving a remainder of 24.
The next digit of our result is 9. 
Result so far: 37178.31547619
If we subtract 4536 from 4560, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

The quotient of the division is 37178.31547619, and the remainder is 2.4e-08.