Let's divide 789997 by 8
We want to divide 789997 by 8.

Moving on to step 1:
If we divide 7 by 8, we get 0 and a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Append the next digit (8) from the dividend to 7 and continue with: 78 / 8

Step 2:
78 divided by 8 is 9 with a remainder of 6.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
The remainder is 6 after subtracting 72 from 78.
Append the next digit (9) from the dividend to 6 and continue with: 69 / 8

Moving on to step 3:
8 goes into 69 8 times with a remainder of 5.
Use 8 as the next digit of our solution. 
Result so far: 98.0
Subtract 64 from 69 to get 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 8

Going ahead to step 4:
If we divide 59 by 8, we get 7 and a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 987.0
Subtracting 56 from 59 leaves us with 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 8

Going ahead to step 5:
When dividing 39 by 8, we get 4 with a remainder of 7.
Put 4 as the next digit of the answer. 
Result so far: 9874.0
Deduct 32 from 39 and we're left with 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 8

On to step 6:
77 divided by 8 is 9 with a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 98749.0
If we take 72 away from 77, 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.

Advancing to step 7:
8 goes into 50 6 times with a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 98749.6
Deduct 48 from 50 and we're left 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.

Going ahead to step 8:
8 goes into 20 2 times with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 98749.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.

Going ahead to step 9:
When dividing 40 by 8, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 98749.625
If we take 40 away from 40, we end up 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.

Moving on to step 10:
If we divide 0 by 8, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 98749.625
Deduct 0 from 0 and we're left 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.

On to step 11:
8 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 98749.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.

The quotient of the division is 98749.625, and the remainder is 0.0.