We're dividing 87989506 by 504 
We're looking to find how many times 504 goes into 87989506.

Let's proceed to step 1:
8 divided by 504 is 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 504

Advancing to step 2:
504 can be fit into 87 0 times, resulting in a remainder of 87.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 87 to get 87.
Grab the next digit (9) from the dividend, add it to 87, then carry on: 879 / 504

Moving on to step 3:
If we divide 879 by 504, we get 1 and a remainder of 375.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 375 after subtracting 504 from 879.
Include the next digit (8) from the dividend after 375, then repeat: 3758 / 504

Step 4:
If we divide 3758 by 504, we get 7 and a remainder of 230.
The next digit of our result is 7. 
Result so far: 17.0
Deduct 3528 from 3758 and we're left with 230.
Append the next digit (9) from the dividend to 230 and continue with: 2309 / 504

Step 5:
The number 504 fits into 2309 4 times, leaving a remainder of 293.
Write down 4 as next digit of the result. 
Result so far: 174.0
Subtract 2016 from 2309 to get 293.
Include the next digit (5) from the dividend after 293, then repeat: 2935 / 504

Advancing to step 6:
504 goes into 2935 5 times with a remainder of 415.
Use 5 as the next digit of our solution. 
Result so far: 1745.0
Subtract 2520 from 2935 to get 415.
Fetch the next digit (0) from the dividend, attach it to 415 and continue: 4150 / 504

Moving on to step 7:
504 can be fit into 4150 8 times, resulting in a remainder of 118.
The number 8 becomes the next digit in our result. 
Result so far: 17458.0
Subtracting 4032 from 4150 leaves us with 118.
Grab the next digit (6) from the dividend, add it to 118, then carry on: 1186 / 504

Let's proceed to step 8:
If we divide 1186 by 504, we get 2 and a remainder of 178.
The number 2 becomes the next digit in our result. 
Result so far: 174582.0
If we subtract 1008 from 1186, we get 178.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

Moving on to step 9:
504 goes into 1780 3 times with a remainder of 268.
The next digit of our result is 3. 
Result so far: 174582.3
Subtract 1512 from 1780 to get 268.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2680, and continue the process.

Advancing to step 10:
2680 divided by 504 is 5 with a remainder of 160.
The number 5 becomes the next digit in our result. 
Result so far: 174582.35
Deduct 2520 from 2680 and we're left with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Going ahead to step 11:
504 goes into 1600 3 times with a remainder of 88.
The number 3 becomes the next digit in our result. 
Result so far: 174582.353
If we subtract 1512 from 1600, we get 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Going ahead to step 12:
When dividing 880 by 504, we get 1 with a remainder of 376.
The next digit of our result is 1. 
Result so far: 174582.3531
Deduct 504 from 880 and we're left with 376.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3760, and continue the process.

Advancing to step 13:
3760 divided by 504 is 7 with a remainder of 232.
Record the quotient 7 as the next digit in the result. 
Result so far: 174582.35317
Subtract 3528 from 3760 to get 232.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

Moving on to step 14:
When dividing 2320 by 504, we get 4 with a remainder of 304.
Put 4 as the next digit of the answer. 
Result so far: 174582.353174
The remainder is 304 after subtracting 2016 from 2320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Advancing to step 15:
When dividing 3040 by 504, we get 6 with a remainder of 16.
Put 6 as the next digit of the answer. 
Result so far: 174582.3531746
The remainder is 16 after subtracting 3024 from 3040.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 16:
If we divide 160 by 504, we get 0 and a remainder of 160.
Put 0 as the next digit of the answer. 
Result so far: 174582.3531746
Subtracting 0 from 160 leaves us with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

The quotient of the division is 174582.3531746, and the remainder is 1.6e-07.