We're dividing 31581162 by 311 
We want to divide 31581162 by 311.

Step 1:
3 divided by 311 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 311

Let's proceed to step 2:
31 divided by 311 is 0 with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Take the next digit (5) from the dividend and append it to 31, then repeat: 315 / 311

Step 3:
311 goes into 315 1 times with a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 4 after subtracting 311 from 315.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 311

On to step 4:
When dividing 48 by 311, we get 0 with a remainder of 48.
Put 0 as the next digit of the answer. 
Result so far: 10.0
The remainder is 48 after subtracting 0 from 48.
Grab the next digit (1) from the dividend, add it to 48, then carry on: 481 / 311

On to step 5:
The number 311 fits into 481 1 times, leaving a remainder of 170.
Put 1 as the next digit of the answer. 
Result so far: 101.0
If we take 311 away from 481, we end up with 170.
Append the next digit (1) from the dividend to 170 and continue with: 1701 / 311

Advancing to step 6:
311 goes into 1701 5 times with a remainder of 146.
Use 5 as the next digit of our solution. 
Result so far: 1015.0
If we subtract 1555 from 1701, we get 146.
Bring next digit (6) of the dividend behind the 146 and repeat the process: 1466 / 311

Let's proceed to step 7:
When dividing 1466 by 311, we get 4 with a remainder of 222.
Record the quotient 4 as the next digit in the result. 
Result so far: 10154.0
Subtract 1244 from 1466 to get 222.
Include the next digit (2) from the dividend after 222, then repeat: 2222 / 311

Let's proceed to step 8:
311 goes into 2222 7 times with a remainder of 45.
The number 7 becomes the next digit in our result. 
Result so far: 101547.0
Subtracting 2177 from 2222 leaves us with 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Advancing to step 9:
When dividing 450 by 311, we get 1 with a remainder of 139.
Write down 1 as next digit of the result. 
Result so far: 101547.1
Deduct 311 from 450 and we're left with 139.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1390, and continue the process.

Moving on to step 10:
If we divide 1390 by 311, we get 4 and a remainder of 146.
The next digit of our result is 4. 
Result so far: 101547.14
Deduct 1244 from 1390 and we're left with 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

Going ahead to step 11:
311 goes into 1460 4 times with a remainder of 216.
Record the quotient 4 as the next digit in the result. 
Result so far: 101547.144
If we subtract 1244 from 1460, we get 216.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2160, and continue the process.

Our division results in 101547.144 with a remaining 0.0216.