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

Advancing to step 1:
When dividing 5 by 59, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 59

Advancing to step 2:
When dividing 50 by 59, we get 0 with a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 50 and we're left with 50.
Bring next digit (4) of the dividend behind the 50 and repeat the process: 504 / 59

Advancing to step 3:
When dividing 504 by 59, we get 8 with a remainder of 32.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
If we subtract 472 from 504, we get 32.
Append the next digit (2) from the dividend to 32 and continue with: 322 / 59

Moving on to step 4:
322 divided by 59 is 5 with a remainder of 27.
Write down 5 as next digit of the result. 
Result so far: 85.0
Subtract 295 from 322 to get 27.
Grab the next digit (4) from the dividend, add it to 27, then carry on: 274 / 59

On to step 5:
When dividing 274 by 59, we get 4 with a remainder of 38.
Write down 4 as next digit of the result. 
Result so far: 854.0
If we take 236 away from 274, we end up with 38.
Bring next digit (0) of the dividend behind the 38 and repeat the process: 380 / 59

Advancing to step 6:
If we divide 380 by 59, we get 6 and a remainder of 26.
The number 6 becomes the next digit in our result. 
Result so far: 8546.0
If we take 354 away from 380, 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.

Advancing to step 7:
The number 59 fits into 260 4 times, leaving a remainder of 24.
The number 4 becomes the next digit in our result. 
Result so far: 8546.4
Subtract 236 from 260 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 8:
59 can be fit into 240 4 times, resulting in a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 8546.44
The remainder is 4 after subtracting 236 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 8546.44 with a remainder of 0.004.