Let's divide 51797 by 8
Our goal is to divide 51797 by 8.

On to step 1:
5 divided by 8 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 8

Moving on to step 2:
8 goes into 51 6 times with a remainder of 3.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Subtract 48 from 51 to get 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 8

Advancing to step 3:
8 can be fit into 37 4 times, resulting in a remainder of 5.
Put 4 as the next digit of the answer. 
Result so far: 64.0
Subtract 32 from 37 to get 5.
Grab the next digit (9) from the dividend, add it to 5, then carry on: 59 / 8

Going ahead to step 4:
8 can be fit into 59 7 times, resulting in a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 647.0
If we subtract 56 from 59, we get 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 8

Let's proceed to step 5:
If we divide 37 by 8, we get 4 and a remainder of 5.
Record the quotient 4 as the next digit in the result. 
Result so far: 6474.0
If we take 32 away from 37, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 6:
If we divide 50 by 8, we get 6 and a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 6474.6
The remainder is 2 after subtracting 48 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
If we divide 20 by 8, we get 2 and a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 6474.62
Subtracting 16 from 20 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
8 goes into 40 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 6474.625
Subtract 40 from 40 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
If we divide 0 by 8, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 6474.625
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 10:
When dividing 0 by 8, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 6474.625
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 6474.625 and a remainder of 0.0.