We're dividing 311497 by 8 
Our goal is to divide 311497 by 8.

Advancing to step 1:
3 divided by 8 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 8

Going ahead to step 2:
31 divided by 8 is 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
The remainder is 7 after subtracting 24 from 31.
Take the next digit (1) from the dividend and append it to 7, then repeat: 71 / 8

Step 3:
If we divide 71 by 8, we get 8 and a remainder of 7.
The next digit of our result is 8. 
Result so far: 38.0
Subtracting 64 from 71 leaves us with 7.
Fetch the next digit (4) from the dividend, attach it to 7 and continue: 74 / 8

Step 4:
8 goes into 74 9 times with a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 389.0
If we take 72 away from 74, we end up with 2.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 8

Step 5:
8 goes into 29 3 times with a remainder of 5.
Record the quotient 3 as the next digit in the result. 
Result so far: 3893.0
If we subtract 24 from 29, we get 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 8

Going ahead to step 6:
The number 8 fits into 57 7 times, leaving a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 38937.0
Deduct 56 from 57 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
If we divide 10 by 8, we get 1 and a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 38937.1
Subtracting 8 from 10 leaves us 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.

Step 8:
If we divide 20 by 8, we get 2 and a remainder of 4.
The next digit of our result is 2. 
Result so far: 38937.12
If we subtract 16 from 20, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 9:
8 goes into 40 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 38937.125
Subtracting 40 from 40 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.

Moving on to step 10:
0 divided by 8 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 38937.125
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.

Step 11:
8 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 38937.125
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.

Our division results in 38937.125 with a remaining 0.0.