Let's divide 138229 by 87
We want to divide 138229 by 87.

Let's proceed to step 1:
87 goes into 1 0 times with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Fetch the next digit (3) from the dividend, attach it to 1 and continue: 13 / 87

Moving on to step 2:
The number 87 fits into 13 0 times, leaving a remainder of 13.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 13, we end up with 13.
Take the next digit (8) from the dividend and append it to 13, then repeat: 138 / 87

Step 3:
87 goes into 138 1 times with a remainder of 51.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 87 away from 138, we end up with 51.
Grab the next digit (2) from the dividend, add it to 51, then carry on: 512 / 87

On to step 4:
87 goes into 512 5 times with a remainder of 77.
Write down 5 as next digit of the result. 
Result so far: 15.0
The remainder is 77 after subtracting 435 from 512.
Include the next digit (2) from the dividend after 77, then repeat: 772 / 87

Advancing to step 5:
The number 87 fits into 772 8 times, leaving a remainder of 76.
Use 8 as the next digit of our solution. 
Result so far: 158.0
Deduct 696 from 772 and we're left with 76.
Append the next digit (9) from the dividend to 76 and continue with: 769 / 87

Moving on to step 6:
If we divide 769 by 87, we get 8 and a remainder of 73.
Use 8 as the next digit of our solution. 
Result so far: 1588.0
If we subtract 696 from 769, we get 73.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

Advancing to step 7:
730 divided by 87 is 8 with a remainder of 34.
Use 8 as the next digit of our solution. 
Result so far: 1588.8
The remainder is 34 after subtracting 696 from 730.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 8:
87 goes into 340 3 times with a remainder of 79.
Put 3 as the next digit of the answer. 
Result so far: 1588.83
If we subtract 261 from 340, we get 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

Let's proceed to step 9:
The number 87 fits into 790 9 times, leaving a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 1588.839
If we take 783 away from 790, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 10:
70 divided by 87 is 0 with a remainder of 70.
The number 0 becomes the next digit in our result. 
Result so far: 1588.839
Subtracting 0 from 70 leaves us with 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Let's proceed to step 11:
87 can be fit into 700 8 times, resulting in a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 1588.83908
Subtracting 696 from 700 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 12:
If we divide 40 by 87, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 1588.83908
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 13:
When dividing 400 by 87, we get 4 with a remainder of 52.
Record the quotient 4 as the next digit in the result. 
Result so far: 1588.8390804
If we take 348 away from 400, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Going ahead to step 14:
520 divided by 87 is 5 with a remainder of 85.
Use 5 as the next digit of our solution. 
Result so far: 1588.83908045
Subtracting 435 from 520 leaves us with 85.
Since there are no more digits in the dividend, we add a zero to the remainder making it 850, and continue the process.

After the division, we end up with 1588.83908045 and a remainder of 8.5e-08.