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

On to step 1:
40 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 40

Step 2:
The number 40 fits into 84 2 times, leaving a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 4 after subtracting 80 from 84.
Fetch the next digit (5) from the dividend, attach it to 4 and continue: 45 / 40

Going ahead to step 3:
40 goes into 45 1 times with a remainder of 5.
Write down 1 as next digit of the result. 
Result so far: 21.0
The remainder is 5 after subtracting 40 from 45.
Fetch the next digit (6) from the dividend, attach it to 5 and continue: 56 / 40

Let's proceed to step 4:
56 divided by 40 is 1 with a remainder of 16.
Put 1 as the next digit of the answer. 
Result so far: 211.0
Subtract 40 from 56 to get 16.
Bring next digit (3) of the dividend behind the 16 and repeat the process: 163 / 40

Step 5:
40 goes into 163 4 times with a remainder of 3.
Record the quotient 4 as the next digit in the result. 
Result so far: 2114.0
If we take 160 away from 163, we end up with 3.
Take the next digit (6) from the dividend and append it to 3, then repeat: 36 / 40

Moving on to step 6:
40 goes into 36 0 times with a remainder of 36.
The next digit of our result is 0. 
Result so far: 21140.0
If we take 0 away from 36, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 7:
40 can be fit into 360 9 times, resulting in a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 21140.9
The remainder is 0 after subtracting 360 from 360.
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 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 21140.9
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.

Moving on to step 9:
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: 21140.9
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.

The quotient of the division is 21140.9, and the remainder is 0.0.