We look at the division of 502166 by 91 
We want to divide 502166 by 91.

Step 1:
When dividing 5 by 91, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 91

Step 2:
When dividing 50 by 91, we get 0 with a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 50, we end up with 50.
Grab the next digit (2) from the dividend, add it to 50, then carry on: 502 / 91

Step 3:
The number 91 fits into 502 5 times, leaving a remainder of 47.
The next digit of our result is 5. 
Result so far: 5.0
If we subtract 455 from 502, we get 47.
Grab the next digit (1) from the dividend, add it to 47, then carry on: 471 / 91

Let's proceed to step 4:
The number 91 fits into 471 5 times, leaving a remainder of 16.
Record the quotient 5 as the next digit in the result. 
Result so far: 55.0
Deduct 455 from 471 and we're left with 16.
Bring next digit (6) of the dividend behind the 16 and repeat the process: 166 / 91

Going ahead to step 5:
91 can be fit into 166 1 times, resulting in a remainder of 75.
Put 1 as the next digit of the answer. 
Result so far: 551.0
If we subtract 91 from 166, we get 75.
Take the next digit (6) from the dividend and append it to 75, then repeat: 756 / 91

Let's proceed to step 6:
The number 91 fits into 756 8 times, leaving a remainder of 28.
The next digit of our result is 8. 
Result so far: 5518.0
Subtract 728 from 756 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 7:
The number 91 fits into 280 3 times, leaving a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 5518.3
If we subtract 273 from 280, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 8:
91 goes into 70 0 times with a remainder of 70.
The number 0 becomes the next digit in our result. 
Result so far: 5518.3
The remainder is 70 after subtracting 0 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Moving on to step 9:
91 can be fit into 700 7 times, resulting in a remainder of 63.
Write down 7 as next digit of the result. 
Result so far: 5518.307
The remainder is 63 after subtracting 637 from 700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

On to step 10:
630 divided by 91 is 6 with a remainder of 84.
Use 6 as the next digit of our solution. 
Result so far: 5518.3076
If we take 546 away from 630, we end up with 84.
Since there are no more digits in the dividend, we add a zero to the remainder making it 840, and continue the process.

Moving on to step 11:
If we divide 840 by 91, we get 9 and a remainder of 21.
The next digit of our result is 9. 
Result so far: 5518.30769
If we take 819 away from 840, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 12:
The number 91 fits into 210 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 5518.307692
If we take 182 away from 210, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 13:
91 goes into 280 3 times with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 5518.3076923
The remainder is 7 after subtracting 273 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 14:
When dividing 70 by 91, we get 0 with a remainder of 70.
The number 0 becomes the next digit in our result. 
Result so far: 5518.3076923
Subtracting 0 from 70 leaves us with 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

After the division, we end up with 5518.3076923 and a remainder of 7e-08.