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

Advancing to step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Bring next digit (4) of the dividend behind the 8 and repeat the process: 84 / 40

Going ahead to step 2:
The number 40 fits into 84 2 times, leaving a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 80 from 84, we get 4.
Include the next digit (6) from the dividend after 4, then repeat: 46 / 40

Moving on to step 3:
If we divide 46 by 40, we get 1 and a remainder of 6.
Use 1 as the next digit of our solution. 
Result so far: 21.0
If we take 40 away from 46, we end up with 6.
Append the next digit (0) from the dividend to 6 and continue with: 60 / 40

Going ahead to step 4:
40 goes into 60 1 times with a remainder of 20.
Record the quotient 1 as the next digit in the result. 
Result so far: 211.0
If we take 40 away from 60, we end up with 20.
Append the next digit (6) from the dividend to 20 and continue with: 206 / 40

On to step 5:
40 goes into 206 5 times with a remainder of 6.
Write down 5 as next digit of the result. 
Result so far: 2115.0
Deduct 200 from 206 and we're left with 6.
Append the next digit (9) from the dividend to 6 and continue with: 69 / 40

Step 6:
When dividing 69 by 40, we get 1 with a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 21151.0
If we take 40 away from 69, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 7:
40 goes into 290 7 times with a remainder of 10.
The number 7 becomes the next digit in our result. 
Result so far: 21151.7
If we subtract 280 from 290, we get 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:
When dividing 100 by 40, we get 2 with a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 21151.72
Subtracting 80 from 100 leaves us 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.

On to 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: 21151.725
Subtract 200 from 200 to 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.

Going ahead to step 10:
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: 21151.725
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.

Moving on to step 11:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 21151.725
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.

Our division results in 21151.725 with a remaining 0.0.