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

Let's proceed to step 1:
The number 40 fits into 6 0 times, leaving a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Bring next digit (2) of the dividend behind the 6 and repeat the process: 62 / 40

Step 2:
The number 40 fits into 62 1 times, leaving a remainder of 22.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 40 from 62, we get 22.
Append the next digit (2) from the dividend to 22 and continue with: 222 / 40

Going ahead to step 3:
The number 40 fits into 222 5 times, leaving a remainder of 22.
Use 5 as the next digit of our solution. 
Result so far: 15.0
Subtracting 200 from 222 leaves us with 22.
Append the next digit (8) from the dividend to 22 and continue with: 228 / 40

Step 4:
228 divided by 40 is 5 with a remainder of 28.
Use 5 as the next digit of our solution. 
Result so far: 155.0
If we take 200 away from 228, we end up with 28.
Take the next digit (6) from the dividend and append it to 28, then repeat: 286 / 40

Going ahead to step 5:
When dividing 286 by 40, we get 7 with a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 1557.0
Deduct 280 from 286 and we're left with 6.
Bring next digit (0) of the dividend behind the 6 and repeat the process: 60 / 40

Advancing to step 6:
When dividing 60 by 40, we get 1 with a remainder of 20.
The next digit of our result is 1. 
Result so far: 15571.0
Subtract 40 from 60 to 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 7:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 15571.5
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.

On to step 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 15571.5
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.

On to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 15571.5
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.

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