151266 ÷ 31 
Our goal is to divide 151266 by 31.

Let's proceed to step 1:
31 goes into 1 0 times with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 31

Moving on to step 2:
When dividing 15 by 31, we get 0 with a remainder of 15.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 15, we end up with 15.
Take the next digit (1) from the dividend and append it to 15, then repeat: 151 / 31

Step 3:
31 goes into 151 4 times with a remainder of 27.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 124 from 151 leaves us with 27.
Append the next digit (2) from the dividend to 27 and continue with: 272 / 31

Advancing to step 4:
If we divide 272 by 31, we get 8 and a remainder of 24.
Write down 8 as next digit of the result. 
Result so far: 48.0
Subtract 248 from 272 to get 24.
Bring next digit (6) of the dividend behind the 24 and repeat the process: 246 / 31

Moving on to step 5:
If we divide 246 by 31, we get 7 and a remainder of 29.
Write down 7 as next digit of the result. 
Result so far: 487.0
If we take 217 away from 246, we end up with 29.
Grab the next digit (6) from the dividend, add it to 29, then carry on: 296 / 31

On to step 6:
The number 31 fits into 296 9 times, leaving a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 4879.0
Deduct 279 from 296 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 7:
31 goes into 170 5 times with a remainder of 15.
The next digit of our result is 5. 
Result so far: 4879.5
Deduct 155 from 170 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 8:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 4879.54
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 9:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 4879.548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 10:
31 goes into 120 3 times with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 4879.5483
If we take 93 away from 120, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 11:
When dividing 270 by 31, we get 8 with a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 4879.54838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 12:
When dividing 220 by 31, we get 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 4879.548387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 13:
30 divided by 31 is 0 with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 4879.548387
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 14:
300 divided by 31 is 9 with a remainder of 21.
The next digit of our result is 9. 
Result so far: 4879.54838709
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

The final result is 4879.54838709 with a remainder of 2.1e-08.