Let's divide 797986 by 51
We want to divide 797986 by 51.

Step 1:
If we divide 7 by 51, we get 0 and a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 51

Advancing to step 2:
When dividing 79 by 51, we get 1 with a remainder of 28.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 51 from 79 to get 28.
Fetch the next digit (7) from the dividend, attach it to 28 and continue: 287 / 51

Moving on to step 3:
287 divided by 51 is 5 with a remainder of 32.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
If we subtract 255 from 287, we get 32.
Include the next digit (9) from the dividend after 32, then repeat: 329 / 51

Going ahead to step 4:
If we divide 329 by 51, we get 6 and a remainder of 23.
Put 6 as the next digit of the answer. 
Result so far: 156.0
The remainder is 23 after subtracting 306 from 329.
Include the next digit (8) from the dividend after 23, then repeat: 238 / 51

On to step 5:
The number 51 fits into 238 4 times, leaving a remainder of 34.
Record the quotient 4 as the next digit in the result. 
Result so far: 1564.0
The remainder is 34 after subtracting 204 from 238.
Include the next digit (6) from the dividend after 34, then repeat: 346 / 51

Advancing to step 6:
The number 51 fits into 346 6 times, leaving a remainder of 40.
The number 6 becomes the next digit in our result. 
Result so far: 15646.0
If we take 306 away from 346, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 7:
51 goes into 400 7 times with a remainder of 43.
Use 7 as the next digit of our solution. 
Result so far: 15646.7
Deduct 357 from 400 and we're left with 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Step 8:
If we divide 430 by 51, we get 8 and a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 15646.78
Subtract 408 from 430 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 9:
When dividing 220 by 51, we get 4 with a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 15646.784
Subtract 204 from 220 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 10:
When dividing 160 by 51, we get 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 15646.7843
The remainder is 7 after subtracting 153 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 11:
If we divide 70 by 51, we get 1 and a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 15646.78431
Deduct 51 from 70 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 12:
51 can be fit into 190 3 times, resulting in a remainder of 37.
Put 3 as the next digit of the answer. 
Result so far: 15646.784313
If we subtract 153 from 190, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Going ahead to step 13:
51 goes into 370 7 times with a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 15646.7843137
The remainder is 13 after subtracting 357 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 14:
130 divided by 51 is 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 15646.78431372
If we subtract 102 from 130, we 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.

Our division results in 15646.78431372 with a remaining 2.8e-08.