We divide 3107998 by 8
We want to divide 3107998 by 8.

Advancing to step 1:
3 divided by 8 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 8

Advancing to step 2:
8 can be fit into 31 3 times, resulting in a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Deduct 24 from 31 and we're left with 7.
Fetch the next digit (0) from the dividend, attach it to 7 and continue: 70 / 8

On to step 3:
8 goes into 70 8 times with a remainder of 6.
The next digit of our result is 8. 
Result so far: 38.0
If we take 64 away from 70, we end up with 6.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 8

Step 4:
If we divide 67 by 8, we get 8 and a remainder of 3.
Use 8 as the next digit of our solution. 
Result so far: 388.0
The remainder is 3 after subtracting 64 from 67.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 8

Going ahead to step 5:
The number 8 fits into 39 4 times, leaving a remainder of 7.
Use 4 as the next digit of our solution. 
Result so far: 3884.0
Deduct 32 from 39 and we're left with 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 8

Step 6:
79 divided by 8 is 9 with a remainder of 7.
The number 9 becomes the next digit in our result. 
Result so far: 38849.0
The remainder is 7 after subtracting 72 from 79.
Take the next digit (8) from the dividend and append it to 7, then repeat: 78 / 8

Moving on to step 7:
78 divided by 8 is 9 with a remainder of 6.
Use 9 as the next digit of our solution. 
Result so far: 388499.0
If we take 72 away from 78, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 8:
60 divided by 8 is 7 with a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 388499.7
If we take 56 away from 60, we end up 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.

Step 9:
When dividing 40 by 8, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 388499.75
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.

Step 10:
0 divided by 8 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 388499.75
If we subtract 0 from 0, we 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.

Going ahead to step 11:
If we divide 0 by 8, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 388499.75
If we take 0 away from 0, 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.

Our division results in 388499.75 with a remaining 0.0.