We're dividing 540291 by 59 
Our goal is to divide 540291 by 59.

Step 1:
If we divide 5 by 59, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Fetch the next digit (4) from the dividend, attach it to 5 and continue: 54 / 59

Step 2:
59 can be fit into 54 0 times, resulting in a remainder of 54.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 54 and we're left with 54.
Bring next digit (0) of the dividend behind the 54 and repeat the process: 540 / 59

Moving on to step 3:
The number 59 fits into 540 9 times, leaving a remainder of 9.
The next digit of our result is 9. 
Result so far: 9.0
If we subtract 531 from 540, we get 9.
Fetch the next digit (2) from the dividend, attach it to 9 and continue: 92 / 59

Let's proceed to step 4:
The number 59 fits into 92 1 times, leaving a remainder of 33.
The next digit of our result is 1. 
Result so far: 91.0
Subtract 59 from 92 to get 33.
Take the next digit (9) from the dividend and append it to 33, then repeat: 339 / 59

On to step 5:
339 divided by 59 is 5 with a remainder of 44.
The next digit of our result is 5. 
Result so far: 915.0
The remainder is 44 after subtracting 295 from 339.
Fetch the next digit (1) from the dividend, attach it to 44 and continue: 441 / 59

On to step 6:
441 divided by 59 is 7 with a remainder of 28.
Put 7 as the next digit of the answer. 
Result so far: 9157.0
The remainder is 28 after subtracting 413 from 441.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 7:
59 can be fit into 280 4 times, resulting in a remainder of 44.
Use 4 as the next digit of our solution. 
Result so far: 9157.4
Deduct 236 from 280 and we're left with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

On to step 8:
440 divided by 59 is 7 with a remainder of 27.
Put 7 as the next digit of the answer. 
Result so far: 9157.47
The remainder is 27 after subtracting 413 from 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 9:
59 can be fit into 270 4 times, resulting in a remainder of 34.
Use 4 as the next digit of our solution. 
Result so far: 9157.474
Deduct 236 from 270 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 10:
If we divide 340 by 59, we get 5 and a remainder of 45.
Record the quotient 5 as the next digit in the result. 
Result so far: 9157.4745
The remainder is 45 after subtracting 295 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Moving on to step 11:
If we divide 450 by 59, we get 7 and a remainder of 37.
Use 7 as the next digit of our solution. 
Result so far: 9157.47457
The remainder is 37 after subtracting 413 from 450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

On to step 12:
59 goes into 370 6 times with a remainder of 16.
Put 6 as the next digit of the answer. 
Result so far: 9157.474576
Subtract 354 from 370 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 13:
The number 59 fits into 160 2 times, leaving a remainder of 42.
Put 2 as the next digit of the answer. 
Result so far: 9157.4745762
The remainder is 42 after subtracting 118 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Let's proceed to step 14:
420 divided by 59 is 7 with a remainder of 7.
Write down 7 as next digit of the result. 
Result so far: 9157.47457627
Subtract 413 from 420 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

The final outcome is 9157.47457627, with a leftover of 7e-09.