We divide 596638 by 40
Our goal is to divide 596638 by 40.

On to step 1:
When dividing 5 by 40, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 40

Moving on to step 2:
If we divide 59 by 40, we get 1 and 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.
Include the next digit (6) from the dividend after 19, then repeat: 196 / 40

Step 3:
40 can be fit into 196 4 times, resulting in a remainder of 36.
Record the quotient 4 as the next digit in the result. 
Result so far: 14.0
If we subtract 160 from 196, we get 36.
Grab the next digit (6) from the dividend, add it to 36, then carry on: 366 / 40

Moving on to step 4:
The number 40 fits into 366 9 times, leaving a remainder of 6.
The next digit of our result is 9. 
Result so far: 149.0
Subtract 360 from 366 to get 6.
Grab the next digit (3) from the dividend, add it to 6, then carry on: 63 / 40

Let's proceed to step 5:
63 divided by 40 is 1 with a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 1491.0
If we take 40 away from 63, we end up with 23.
Fetch the next digit (8) from the dividend, attach it to 23 and continue: 238 / 40

Advancing to step 6:
238 divided by 40 is 5 with a remainder of 38.
Write down 5 as next digit of the result. 
Result so far: 14915.0
The remainder is 38 after subtracting 200 from 238.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Advancing to step 7:
40 can be fit into 380 9 times, resulting in a remainder of 20.
The number 9 becomes the next digit in our result. 
Result so far: 14915.9
Subtracting 360 from 380 leaves us 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.

Going ahead to step 8:
40 can be fit into 200 5 times, resulting in a remainder of 0.
The next digit of our result is 5. 
Result so far: 14915.95
If we subtract 200 from 200, we 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:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 14915.95
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.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14915.95
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.

The final result is 14915.95 with a remainder of 0.0.