594538 divided by 40 
We want to divide 594538 by 40.

Moving on to step 1:
5 divided by 40 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 40

Let's proceed to step 2:
When dividing 59 by 40, we get 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 19 after subtracting 40 from 59.
Append the next digit (4) from the dividend to 19 and continue with: 194 / 40

Advancing to step 3:
40 goes into 194 4 times with a remainder of 34.
The next digit of our result is 4. 
Result so far: 14.0
Subtracting 160 from 194 leaves us with 34.
Fetch the next digit (5) from the dividend, attach it to 34 and continue: 345 / 40

Going ahead to step 4:
The number 40 fits into 345 8 times, leaving a remainder of 25.
Use 8 as the next digit of our solution. 
Result so far: 148.0
If we subtract 320 from 345, we get 25.
Bring next digit (3) of the dividend behind the 25 and repeat the process: 253 / 40

Advancing to step 5:
The number 40 fits into 253 6 times, leaving a remainder of 13.
Use 6 as the next digit of our solution. 
Result so far: 1486.0
Deduct 240 from 253 and we're left with 13.
Take the next digit (8) from the dividend and append it to 13, then repeat: 138 / 40

Step 6:
138 divided by 40 is 3 with a remainder of 18.
The number 3 becomes the next digit in our result. 
Result so far: 14863.0
Subtracting 120 from 138 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 7:
40 can be fit into 180 4 times, resulting in a remainder of 20.
The number 4 becomes the next digit in our result. 
Result so far: 14863.4
If we subtract 160 from 180, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
200 divided by 40 is 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 14863.45
Subtract 200 from 200 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14863.45
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14863.45
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 14863.45 and a remainder of 0.0.