We divide 310412 by 8
We want to divide 310412 by 8.

Moving on to step 1:
8 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 8

Moving on to step 2:
When dividing 31 by 8, we get 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 24 from 31 to get 7.
Append the next digit (0) from the dividend to 7 and continue with: 70 / 8

On to step 3:
8 can be fit into 70 8 times, resulting in a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 38.0
The remainder is 6 after subtracting 64 from 70.
Append the next digit (4) from the dividend to 6 and continue with: 64 / 8

Moving on to step 4:
If we divide 64 by 8, we get 8 and a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 388.0
The remainder is 0 after subtracting 64 from 64.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 8

Going ahead to step 5:
When dividing 1 by 8, we get 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 3880.0
If we subtract 0 from 1, we get 1.
Grab the next digit (2) from the dividend, add it to 1, then carry on: 12 / 8

On to step 6:
12 divided by 8 is 1 with a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 38801.0
Subtracting 8 from 12 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 7:
If we divide 40 by 8, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 38801.5
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.

On to step 8:
8 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 38801.5
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.

Moving on to step 9:
0 divided by 8 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 38801.5
Subtract 0 from 0 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.

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