We divide 508166 by 51
Our goal is to divide 508166 by 51.

Advancing to step 1:
If we divide 5 by 51, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 51

Advancing to step 2:
If we divide 50 by 51, we get 0 and a remainder of 50.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 50 to get 50.
Include the next digit (8) from the dividend after 50, then repeat: 508 / 51

Let's proceed to step 3:
If we divide 508 by 51, we get 9 and a remainder of 49.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
Deduct 459 from 508 and we're left with 49.
Include the next digit (1) from the dividend after 49, then repeat: 491 / 51

Moving on to step 4:
The number 51 fits into 491 9 times, leaving a remainder of 32.
Use 9 as the next digit of our solution. 
Result so far: 99.0
Deduct 459 from 491 and we're left with 32.
Grab the next digit (6) from the dividend, add it to 32, then carry on: 326 / 51

Let's proceed to step 5:
326 divided by 51 is 6 with a remainder of 20.
The number 6 becomes the next digit in our result. 
Result so far: 996.0
Deduct 306 from 326 and we're left with 20.
Append the next digit (6) from the dividend to 20 and continue with: 206 / 51

Let's proceed to step 6:
When dividing 206 by 51, we get 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 9964.0
If we take 204 away from 206, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
When dividing 20 by 51, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 9964.0
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
51 goes into 200 3 times with a remainder of 47.
Use 3 as the next digit of our solution. 
Result so far: 9964.03
If we subtract 153 from 200, we get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Step 9:
51 can be fit into 470 9 times, resulting in a remainder of 11.
The number 9 becomes the next digit in our result. 
Result so far: 9964.039
Deduct 459 from 470 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 10:
51 goes into 110 2 times with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 9964.0392
Subtract 102 from 110 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 11:
When dividing 80 by 51, we get 1 with a remainder of 29.
The next digit of our result is 1. 
Result so far: 9964.03921
Subtract 51 from 80 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 12:
When dividing 290 by 51, we get 5 with a remainder of 35.
The number 5 becomes the next digit in our result. 
Result so far: 9964.039215
If we subtract 255 from 290, we get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 13:
If we divide 350 by 51, we get 6 and a remainder of 44.
Write down 6 as next digit of the result. 
Result so far: 9964.0392156
The remainder is 44 after subtracting 306 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Going ahead to step 14:
51 can be fit into 440 8 times, resulting in a remainder of 32.
Put 8 as the next digit of the answer. 
Result so far: 9964.03921568
Subtract 408 from 440 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

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