Let's divide 589490 by 40
The aim is to understand the frequency of 40 in 589490.

Moving on 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
Subtract 0 from 5 to get 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 40

Advancing to step 2:
When dividing 58 by 40, we get 1 with a remainder of 18.
The next digit of our result is 1. 
Result so far: 1.0
If we take 40 away from 58, we end up with 18.
Grab the next digit (9) from the dividend, add it to 18, then carry on: 189 / 40

On to step 3:
The number 40 fits into 189 4 times, leaving a remainder of 29.
Write down 4 as next digit of the result. 
Result so far: 14.0
Subtracting 160 from 189 leaves us with 29.
Append the next digit (4) from the dividend to 29 and continue with: 294 / 40

Advancing to step 4:
40 can be fit into 294 7 times, resulting in a remainder of 14.
The number 7 becomes the next digit in our result. 
Result so far: 147.0
Deduct 280 from 294 and we're left with 14.
Take the next digit (9) from the dividend and append it to 14, then repeat: 149 / 40

On to step 5:
40 goes into 149 3 times with a remainder of 29.
Record the quotient 3 as the next digit in the result. 
Result so far: 1473.0
If we take 120 away from 149, we end up with 29.
Bring next digit (0) of the dividend behind the 29 and repeat the process: 290 / 40

Let's proceed to step 6:
When dividing 290 by 40, we get 7 with a remainder of 10.
Use 7 as the next digit of our solution. 
Result so far: 14737.0
Subtracting 280 from 290 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.

Moving on to step 7:
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: 14737.2
If we subtract 80 from 100, 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.

Advancing to step 8:
200 divided by 40 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 14737.25
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 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 14737.25
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: 14737.25
Deduct 0 from 0 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.

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