595913 divided by 40 
The aim is to understand the frequency of 40 in 595913.

On to 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
If we subtract 0 from 5, we get 5.
Grab the next digit (9) from the dividend, add it to 5, then carry on: 59 / 40

On to step 2:
59 divided by 40 is 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 40 from 59 leaves us with 19.
Fetch the next digit (5) from the dividend, attach it to 19 and continue: 195 / 40

Step 3:
40 goes into 195 4 times with a remainder of 35.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
If we subtract 160 from 195, we get 35.
Append the next digit (9) from the dividend to 35 and continue with: 359 / 40

Step 4:
If we divide 359 by 40, we get 8 and a remainder of 39.
Put 8 as the next digit of the answer. 
Result so far: 148.0
Subtracting 320 from 359 leaves us with 39.
Take the next digit (1) from the dividend and append it to 39, then repeat: 391 / 40

Advancing to step 5:
The number 40 fits into 391 9 times, leaving a remainder of 31.
The next digit of our result is 9. 
Result so far: 1489.0
Subtracting 360 from 391 leaves us with 31.
Take the next digit (3) from the dividend and append it to 31, then repeat: 313 / 40

Going ahead to step 6:
The number 40 fits into 313 7 times, leaving a remainder of 33.
Use 7 as the next digit of our solution. 
Result so far: 14897.0
The remainder is 33 after subtracting 280 from 313.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Going ahead to step 7:
40 goes into 330 8 times with a remainder of 10.
Put 8 as the next digit of the answer. 
Result so far: 14897.8
Subtracting 320 from 330 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 8:
If we divide 100 by 40, we get 2 and a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 14897.82
The remainder is 20 after subtracting 80 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14897.825
Deduct 200 from 200 and we're left 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.

Moving on to step 10:
40 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14897.825
Subtracting 0 from 0 leaves us 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.

On to step 11:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 14897.825
If we subtract 0 from 0, 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.

In conclusion, the division gives 14897.825 with a balance of 0.0.