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

Going ahead to step 1:
If we divide 8 by 502, we get 0 and a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Grab the next digit (9) from the dividend, add it to 8, then carry on: 89 / 502

Step 2:
When dividing 89 by 502, we get 0 with a remainder of 89.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 89, we get 89.
Take the next digit (1) from the dividend and append it to 89, then repeat: 891 / 502

Advancing to step 3:
When dividing 891 by 502, we get 1 with a remainder of 389.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 389 after subtracting 502 from 891.
Take the next digit (6) from the dividend and append it to 389, then repeat: 3896 / 502

Advancing to step 4:
When dividing 3896 by 502, we get 7 with a remainder of 382.
The number 7 becomes the next digit in our result. 
Result so far: 17.0
Deduct 3514 from 3896 and we're left with 382.
Take the next digit (1) from the dividend and append it to 382, then repeat: 3821 / 502

Advancing to step 5:
If we divide 3821 by 502, we get 7 and a remainder of 307.
Use 7 as the next digit of our solution. 
Result so far: 177.0
Subtracting 3514 from 3821 leaves us with 307.
Include the next digit (3) from the dividend after 307, then repeat: 3073 / 502

Advancing to step 6:
3073 divided by 502 is 6 with a remainder of 61.
Use 6 as the next digit of our solution. 
Result so far: 1776.0
Subtract 3012 from 3073 to get 61.
Include the next digit (7) from the dividend after 61, then repeat: 617 / 502

Let's proceed to step 7:
When dividing 617 by 502, we get 1 with a remainder of 115.
Record the quotient 1 as the next digit in the result. 
Result so far: 17761.0
Deduct 502 from 617 and we're left with 115.
Bring next digit (1) of the dividend behind the 115 and repeat the process: 1151 / 502

Step 8:
The number 502 fits into 1151 2 times, leaving a remainder of 147.
Put 2 as the next digit of the answer. 
Result so far: 177612.0
Subtract 1004 from 1151 to get 147.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1470, and continue the process.

Moving on to step 9:
502 can be fit into 1470 2 times, resulting in a remainder of 466.
Write down 2 as next digit of the result. 
Result so far: 177612.2
Subtracting 1004 from 1470 leaves us with 466.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4660, and continue the process.

Moving on to step 10:
The number 502 fits into 4660 9 times, leaving a remainder of 142.
Record the quotient 9 as the next digit in the result. 
Result so far: 177612.29
If we take 4518 away from 4660, we end up with 142.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

On to step 11:
502 can be fit into 1420 2 times, resulting in a remainder of 416.
Use 2 as the next digit of our solution. 
Result so far: 177612.292
If we subtract 1004 from 1420, we get 416.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4160, and continue the process.

Step 12:
4160 divided by 502 is 8 with a remainder of 144.
Write down 8 as next digit of the result. 
Result so far: 177612.2928
Subtract 4016 from 4160 to get 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

Advancing to step 13:
When dividing 1440 by 502, we get 2 with a remainder of 436.
Put 2 as the next digit of the answer. 
Result so far: 177612.29282
Subtract 1004 from 1440 to get 436.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4360, and continue the process.

Advancing to step 14:
502 can be fit into 4360 8 times, resulting in a remainder of 344.
Record the quotient 8 as the next digit in the result. 
Result so far: 177612.292828
Deduct 4016 from 4360 and we're left with 344.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3440, and continue the process.

Advancing to step 15:
If we divide 3440 by 502, we get 6 and a remainder of 428.
Put 6 as the next digit of the answer. 
Result so far: 177612.2928286
If we take 3012 away from 3440, we end up with 428.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4280, and continue the process.

Advancing to step 16:
502 can be fit into 4280 8 times, resulting in a remainder of 264.
The next digit of our result is 8. 
Result so far: 177612.29282868
If we subtract 4016 from 4280, we get 264.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2640, and continue the process.

The quotient of the division is 177612.29282868, and the remainder is 2.64e-07.