We look at the division of 51170831 by 797 
Our goal is to divide 51170831 by 797.

Let's proceed to step 1:
797 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 797

Advancing to step 2:
The number 797 fits into 51 0 times, leaving a remainder of 51.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 51, we get 51.
Fetch the next digit (1) from the dividend, attach it to 51 and continue: 511 / 797

Advancing to step 3:
797 goes into 511 0 times with a remainder of 511.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 511, we end up with 511.
Grab the next digit (7) from the dividend, add it to 511, then carry on: 5117 / 797

Advancing to step 4:
5117 divided by 797 is 6 with a remainder of 335.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
If we subtract 4782 from 5117, we get 335.
Grab the next digit (0) from the dividend, add it to 335, then carry on: 3350 / 797

Advancing to step 5:
3350 divided by 797 is 4 with a remainder of 162.
The next digit of our result is 4. 
Result so far: 64.0
Subtract 3188 from 3350 to get 162.
Bring next digit (8) of the dividend behind the 162 and repeat the process: 1628 / 797

Going ahead to step 6:
The number 797 fits into 1628 2 times, leaving a remainder of 34.
Use 2 as the next digit of our solution. 
Result so far: 642.0
The remainder is 34 after subtracting 1594 from 1628.
Take the next digit (3) from the dividend and append it to 34, then repeat: 343 / 797

Moving on to step 7:
The number 797 fits into 343 0 times, leaving a remainder of 343.
The next digit of our result is 0. 
Result so far: 6420.0
Subtracting 0 from 343 leaves us with 343.
Include the next digit (1) from the dividend after 343, then repeat: 3431 / 797

On to step 8:
3431 divided by 797 is 4 with a remainder of 243.
Use 4 as the next digit of our solution. 
Result so far: 64204.0
The remainder is 243 after subtracting 3188 from 3431.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2430, and continue the process.

Going ahead to step 9:
797 can be fit into 2430 3 times, resulting in a remainder of 39.
Use 3 as the next digit of our solution. 
Result so far: 64204.3
The remainder is 39 after subtracting 2391 from 2430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Going ahead to step 10:
797 can be fit into 390 0 times, resulting in a remainder of 390.
Write down 0 as next digit of the result. 
Result so far: 64204.3
Subtract 0 from 390 to get 390.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3900, and continue the process.

Moving on to step 11:
The number 797 fits into 3900 4 times, leaving a remainder of 712.
The number 4 becomes the next digit in our result. 
Result so far: 64204.304
If we take 3188 away from 3900, we end up with 712.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7120, and continue the process.

Step 12:
If we divide 7120 by 797, we get 8 and a remainder of 744.
The next digit of our result is 8. 
Result so far: 64204.3048
If we subtract 6376 from 7120, we get 744.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7440, and continue the process.

Let's proceed to step 13:
If we divide 7440 by 797, we get 9 and a remainder of 267.
The next digit of our result is 9. 
Result so far: 64204.30489
Deduct 7173 from 7440 and we're left with 267.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2670, and continue the process.

Going ahead to step 14:
If we divide 2670 by 797, we get 3 and a remainder of 279.
Use 3 as the next digit of our solution. 
Result so far: 64204.304893
Subtracting 2391 from 2670 leaves us with 279.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2790, and continue the process.

On to step 15:
797 can be fit into 2790 3 times, resulting in a remainder of 399.
Write down 3 as next digit of the result. 
Result so far: 64204.3048933
If we subtract 2391 from 2790, we get 399.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3990, and continue the process.

Our division results in 64204.3048933 with a remaining 3.99e-06.