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

On to step 1:
The number 8 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (3) from the dividend to 3 and continue with: 33 / 8

Advancing to step 2:
When dividing 33 by 8, we get 4 with a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 4.0
If we subtract 32 from 33, we get 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 8

On to step 3:
8 goes into 11 1 times with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 41.0
Deduct 8 from 11 and we're left with 3.
Include the next digit (2) from the dividend after 3, then repeat: 32 / 8

Step 4:
8 can be fit into 32 4 times, resulting in a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 414.0
The remainder is 0 after subtracting 32 from 32.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 8

Step 5:
3 divided by 8 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 4140.0
If we subtract 0 from 3, we get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 8

Let's proceed to step 6:
8 goes into 31 3 times with a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 41403.0
Subtract 24 from 31 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 7:
8 goes into 70 8 times with a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 41403.8
The remainder is 6 after subtracting 64 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 8:
When dividing 60 by 8, we get 7 with a remainder of 4.
Use 7 as the next digit of our solution. 
Result so far: 41403.87
Subtract 56 from 60 to 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.

Going ahead to step 9:
If we divide 40 by 8, we get 5 and a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 41403.875
If we subtract 40 from 40, 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 10:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 41403.875
The remainder is 0 after subtracting 0 from 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:
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: 41403.875
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 final outcome is 41403.875, with a leftover of 0.0.