151871 divided by 5 
We want to divide 151871 by 5.

Step 1:
5 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 5

Step 2:
15 divided by 5 is 3 with a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
The remainder is 0 after subtracting 15 from 15.
Fetch the next digit (1) from the dividend, attach it to 0 and continue: 1 / 5

Going ahead to step 3:
When dividing 1 by 5, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 30.0
If we subtract 0 from 1, we get 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 5

Going ahead to step 4:
When dividing 18 by 5, we get 3 with a remainder of 3.
Record the quotient 3 as the next digit in the result. 
Result so far: 303.0
Deduct 15 from 18 and we're left with 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 5

Going ahead to step 5:
The number 5 fits into 37 7 times, leaving a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 3037.0
If we subtract 35 from 37, we get 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 5

Step 6:
If we divide 21 by 5, we get 4 and a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 30374.0
Subtracting 20 from 21 leaves us 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.

On to step 7:
The number 5 fits into 10 2 times, leaving a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 30374.2
Subtracting 10 from 10 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 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 30374.2
If we take 0 away from 0, we end up 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.

Advancing to step 9:
5 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 30374.2
If we take 0 away from 0, we end up 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 result is 30374.2 with a remainder of 0.0.