Let's divide 151587 by 7
We're looking to find how many times 7 goes into 151587.

Going ahead to step 1:
If we divide 1 by 7, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 7

Advancing to step 2:
7 goes into 15 2 times with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 14 away from 15, we end up with 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 7

Let's proceed to step 3:
7 goes into 11 1 times with a remainder of 4.
The next digit of our result is 1. 
Result so far: 21.0
If we take 7 away from 11, we end up with 4.
Append the next digit (5) from the dividend to 4 and continue with: 45 / 7

Moving on to step 4:
The number 7 fits into 45 6 times, leaving a remainder of 3.
Record the quotient 6 as the next digit in the result. 
Result so far: 216.0
Subtracting 42 from 45 leaves us with 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 7

Advancing to step 5:
If we divide 38 by 7, we get 5 and a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 2165.0
The remainder is 3 after subtracting 35 from 38.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 7

Step 6:
7 can be fit into 37 5 times, resulting in a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 21655.0
If we subtract 35 from 37, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
7 goes into 20 2 times with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 21655.2
Subtract 14 from 20 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 8:
60 divided by 7 is 8 with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 21655.28
The remainder is 4 after subtracting 56 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 9:
If we divide 40 by 7, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 21655.285
If we take 35 away from 40, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 10:
7 can be fit into 50 7 times, resulting in a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 21655.2857
Subtracting 49 from 50 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 11:
The number 7 fits into 10 1 times, leaving a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 21655.28571
Subtract 7 from 10 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.

Going ahead to step 12:
The number 7 fits into 30 4 times, leaving a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 21655.285714
The remainder is 2 after subtracting 28 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 13:
7 goes into 20 2 times with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 21655.2857142
If we subtract 14 from 20, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 14:
When dividing 60 by 7, we get 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 21655.28571428
The remainder is 4 after subtracting 56 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The quotient of the division is 21655.28571428, and the remainder is 4e-09.