We look at the division of 540587 by 51 
Our goal is to divide 540587 by 51.

On to step 1:
When dividing 5 by 51, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 51

Going ahead to step 2:
54 divided by 51 is 1 with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 51 from 54 and we're left with 3.
Append the next digit (0) from the dividend to 3 and continue with: 30 / 51

Advancing to step 3:
51 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 10.0
If we subtract 0 from 30, we get 30.
Grab the next digit (5) from the dividend, add it to 30, then carry on: 305 / 51

Moving on to step 4:
When dividing 305 by 51, we get 5 with a remainder of 50.
The next digit of our result is 5. 
Result so far: 105.0
The remainder is 50 after subtracting 255 from 305.
Bring next digit (8) of the dividend behind the 50 and repeat the process: 508 / 51

Advancing to step 5:
When dividing 508 by 51, we get 9 with a remainder of 49.
Put 9 as the next digit of the answer. 
Result so far: 1059.0
If we take 459 away from 508, we end up with 49.
Fetch the next digit (7) from the dividend, attach it to 49 and continue: 497 / 51

Going ahead to step 6:
When dividing 497 by 51, we get 9 with a remainder of 38.
Put 9 as the next digit of the answer. 
Result so far: 10599.0
The remainder is 38 after subtracting 459 from 497.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

On to step 7:
51 goes into 380 7 times with a remainder of 23.
The next digit of our result is 7. 
Result so far: 10599.7
If we take 357 away from 380, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 8:
If we divide 230 by 51, we get 4 and a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 10599.74
If we take 204 away from 230, we end up 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.

Moving on to step 9:
260 divided by 51 is 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 10599.745
Deduct 255 from 260 and we're left 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.

Moving on to step 10:
When dividing 50 by 51, we get 0 with a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 10599.745
Deduct 0 from 50 and we're left with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

On to step 11:
500 divided by 51 is 9 with a remainder of 41.
The next digit of our result is 9. 
Result so far: 10599.74509
If we take 459 away from 500, we end up with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

On to step 12:
When dividing 410 by 51, we get 8 with a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 10599.745098
Deduct 408 from 410 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 13:
20 divided by 51 is 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 10599.745098
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 14:
51 can be fit into 200 3 times, resulting in a remainder of 47.
Write down 3 as next digit of the result. 
Result so far: 10599.74509803
If we subtract 153 from 200, we get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

In conclusion, the division gives 10599.74509803 with a balance of 4.7e-08.