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

On to step 1:
The number 40 fits into 7 0 times, leaving a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Take the next digit (5) from the dividend and append it to 7, then repeat: 75 / 40

Going ahead to step 2:
40 goes into 75 1 times with a remainder of 35.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 40 from 75 and we're left with 35.
Fetch the next digit (7) from the dividend, attach it to 35 and continue: 357 / 40

Step 3:
The number 40 fits into 357 8 times, leaving a remainder of 37.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
Subtract 320 from 357 to get 37.
Take the next digit (0) from the dividend and append it to 37, then repeat: 370 / 40

Advancing to step 4:
370 divided by 40 is 9 with a remainder of 10.
Write down 9 as next digit of the result. 
Result so far: 189.0
Subtracting 360 from 370 leaves us with 10.
Append the next digit (8) from the dividend to 10 and continue with: 108 / 40

Going ahead to step 5:
If we divide 108 by 40, we get 2 and a remainder of 28.
The next digit of our result is 2. 
Result so far: 1892.0
If we take 80 away from 108, we end up with 28.
Fetch the next digit (6) from the dividend, attach it to 28 and continue: 286 / 40

Advancing to step 6:
If we divide 286 by 40, we get 7 and a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 18927.0
Subtract 280 from 286 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 7:
40 goes into 60 1 times with a remainder of 20.
Write down 1 as next digit of the result. 
Result so far: 18927.1
The remainder is 20 after subtracting 40 from 60.
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 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 18927.15
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.

Let's proceed to step 9:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 18927.15
Subtract 0 from 0 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 number 0 becomes the next digit in our result. 
Result so far: 18927.15
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.

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