595248 divided by 40 
Let's see how many times 40 fits into 595248.

Step 1:
When dividing 5 by 40, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (9) from the dividend after 5, then repeat: 59 / 40

Advancing to step 2:
The number 40 fits into 59 1 times, leaving a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 40 from 59 and we're left with 19.
Grab the next digit (5) from the dividend, add it to 19, then carry on: 195 / 40

Let's proceed to step 3:
When dividing 195 by 40, we get 4 with a remainder of 35.
Use 4 as the next digit of our solution. 
Result so far: 14.0
Subtract 160 from 195 to get 35.
Take the next digit (2) from the dividend and append it to 35, then repeat: 352 / 40

Going ahead to step 4:
The number 40 fits into 352 8 times, leaving a remainder of 32.
Use 8 as the next digit of our solution. 
Result so far: 148.0
Subtract 320 from 352 to get 32.
Include the next digit (4) from the dividend after 32, then repeat: 324 / 40

On to step 5:
40 can be fit into 324 8 times, resulting in a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 1488.0
Subtracting 320 from 324 leaves us with 4.
Take the next digit (8) from the dividend and append it to 4, then repeat: 48 / 40

Going ahead to step 6:
40 goes into 48 1 times with a remainder of 8.
The next digit of our result is 1. 
Result so far: 14881.0
If we subtract 40 from 48, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 7:
The number 40 fits into 80 2 times, leaving a remainder of 0.
The next digit of our result is 2. 
Result so far: 14881.2
If we subtract 80 from 80, 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.

Advancing to step 8:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14881.2
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 9:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14881.2
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.

The final outcome is 14881.2, with a leftover of 0.0.