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

Step 1:
The number 40 fits into 9 0 times, leaving a remainder of 9.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Append the next digit (3) from the dividend to 9 and continue with: 93 / 40

Moving on to step 2:
If we divide 93 by 40, we get 2 and a remainder of 13.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 80 from 93 and we're left with 13.
Grab the next digit (6) from the dividend, add it to 13, then carry on: 136 / 40

Step 3:
40 can be fit into 136 3 times, resulting in a remainder of 16.
The next digit of our result is 3. 
Result so far: 23.0
Deduct 120 from 136 and we're left with 16.
Grab the next digit (8) from the dividend, add it to 16, then carry on: 168 / 40

Let's proceed to step 4:
When dividing 168 by 40, we get 4 with a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 234.0
If we subtract 160 from 168, we get 8.
Grab the next digit (1) from the dividend, add it to 8, then carry on: 81 / 40

On to step 5:
The number 40 fits into 81 2 times, leaving a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2342.0
If we take 80 away from 81, we end up with 1.
Take the next digit (3) from the dividend and append it to 1, then repeat: 13 / 40

Step 6:
If we divide 13 by 40, we get 0 and a remainder of 13.
Use 0 as the next digit of our solution. 
Result so far: 23420.0
If we take 0 away from 13, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

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

Going ahead to step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 23420.32
If we take 80 away from 100, we end up 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.

Going ahead to step 9:
40 goes into 200 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 23420.325
If we subtract 200 from 200, 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.

Going ahead to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 23420.325
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.

Let's proceed to step 11:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 23420.325
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 23420.325, with a leftover of 0.0.