We divide 590302 by 40
The aim is to understand the frequency of 40 in 590302.

Going ahead to step 1:
If we divide 5 by 40, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (9) from the dividend after 5, then repeat: 59 / 40

Step 2:
40 can be fit into 59 1 times, resulting in a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 40 from 59 leaves us with 19.
Take the next digit (0) from the dividend and append it to 19, then repeat: 190 / 40

On to step 3:
190 divided by 40 is 4 with a remainder of 30.
Put 4 as the next digit of the answer. 
Result so far: 14.0
Subtracting 160 from 190 leaves us with 30.
Fetch the next digit (3) from the dividend, attach it to 30 and continue: 303 / 40

On to step 4:
If we divide 303 by 40, we get 7 and a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 147.0
The remainder is 23 after subtracting 280 from 303.
Bring next digit (0) of the dividend behind the 23 and repeat the process: 230 / 40

On to step 5:
The number 40 fits into 230 5 times, leaving a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 1475.0
If we subtract 200 from 230, we get 30.
Take the next digit (2) from the dividend and append it to 30, then repeat: 302 / 40

Step 6:
The number 40 fits into 302 7 times, leaving a remainder of 22.
Put 7 as the next digit of the answer. 
Result so far: 14757.0
Subtract 280 from 302 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 7:
When dividing 220 by 40, we get 5 with a remainder of 20.
Put 5 as the next digit of the answer. 
Result so far: 14757.5
Deduct 200 from 220 and we're left 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.

Let's proceed to step 8:
40 goes into 200 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14757.55
Subtracting 200 from 200 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.

Our division results in 14757.55 with a remaining 0.0.