We look at the division of 916037 by 40 
The aim is to understand the frequency of 40 in 916037.

On to step 1:
When dividing 9 by 40, we get 0 with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Include the next digit (1) from the dividend after 9, then repeat: 91 / 40

Moving on to step 2:
When dividing 91 by 40, we get 2 with a remainder of 11.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 80 away from 91, we end up with 11.
Append the next digit (6) from the dividend to 11 and continue with: 116 / 40

Advancing to step 3:
40 goes into 116 2 times with a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 22.0
If we subtract 80 from 116, we get 36.
Grab the next digit (0) from the dividend, add it to 36, then carry on: 360 / 40

Moving on to step 4:
The number 40 fits into 360 9 times, leaving a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 229.0
If we subtract 360 from 360, we get 0.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 40

Moving on to step 5:
40 can be fit into 3 0 times, resulting in a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 2290.0
The remainder is 3 after subtracting 0 from 3.
Append the next digit (7) from the dividend to 3 and continue with: 37 / 40

Moving on to step 6:
40 goes into 37 0 times with a remainder of 37.
Use 0 as the next digit of our solution. 
Result so far: 22900.0
If we subtract 0 from 37, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Advancing to step 7:
When dividing 370 by 40, we get 9 with a remainder of 10.
Put 9 as the next digit of the answer. 
Result so far: 22900.9
Subtract 360 from 370 to 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:
The number 40 fits into 100 2 times, leaving a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 22900.92
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.

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

Let's proceed to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 22900.925
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 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 22900.925
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 quotient of the division is 22900.925, and the remainder is 0.0.