We're dividing 540285 by 87 
We want to divide 540285 by 87.

Step 1:
5 divided by 87 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 87

On to step 2:
When dividing 54 by 87, we get 0 with a remainder of 54.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 54, we end up with 54.
Bring next digit (0) of the dividend behind the 54 and repeat the process: 540 / 87

Advancing to step 3:
If we divide 540 by 87, we get 6 and a remainder of 18.
Put 6 as the next digit of the answer. 
Result so far: 6.0
If we take 522 away from 540, we end up with 18.
Append the next digit (2) from the dividend to 18 and continue with: 182 / 87

Going ahead to step 4:
182 divided by 87 is 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 62.0
Subtracting 174 from 182 leaves us with 8.
Take the next digit (8) from the dividend and append it to 8, then repeat: 88 / 87

Moving on to step 5:
The number 87 fits into 88 1 times, leaving a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 621.0
Subtract 87 from 88 to get 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 87

Step 6:
15 divided by 87 is 0 with a remainder of 15.
The next digit of our result is 0. 
Result so far: 6210.0
The remainder is 15 after subtracting 0 from 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 7:
If we divide 150 by 87, we get 1 and a remainder of 63.
Use 1 as the next digit of our solution. 
Result so far: 6210.1
Subtracting 87 from 150 leaves us with 63.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

Going ahead to step 8:
630 divided by 87 is 7 with a remainder of 21.
Put 7 as the next digit of the answer. 
Result so far: 6210.17
Subtracting 609 from 630 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 9:
The number 87 fits into 210 2 times, leaving a remainder of 36.
The next digit of our result is 2. 
Result so far: 6210.172
Deduct 174 from 210 and we're left with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 10:
The number 87 fits into 360 4 times, leaving a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 6210.1724
If we subtract 348 from 360, we 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 11:
120 divided by 87 is 1 with a remainder of 33.
The number 1 becomes the next digit in our result. 
Result so far: 6210.17241
Subtract 87 from 120 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Going ahead to step 12:
If we divide 330 by 87, we get 3 and a remainder of 69.
The next digit of our result is 3. 
Result so far: 6210.172413
If we subtract 261 from 330, we get 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

Let's proceed to step 13:
When dividing 690 by 87, we get 7 with a remainder of 81.
Write down 7 as next digit of the result. 
Result so far: 6210.1724137
If we take 609 away from 690, we end up with 81.
Since there are no more digits in the dividend, we add a zero to the remainder making it 810, and continue the process.

On to step 14:
87 can be fit into 810 9 times, resulting in a remainder of 27.
The next digit of our result is 9. 
Result so far: 6210.17241379
Subtract 783 from 810 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

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