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

Step 1:
40 can be fit into 7 0 times, resulting in a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Include the next digit (0) from the dividend after 7, then repeat: 70 / 40

Step 2:
40 goes into 70 1 times with a remainder of 30.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 40 from 70 to get 30.
Bring next digit (2) of the dividend behind the 30 and repeat the process: 302 / 40

Let's proceed to step 3:
302 divided by 40 is 7 with a remainder of 22.
The next digit of our result is 7. 
Result so far: 17.0
Subtracting 280 from 302 leaves us with 22.
Fetch the next digit (1) from the dividend, attach it to 22 and continue: 221 / 40

Going ahead to step 4:
40 goes into 221 5 times with a remainder of 21.
Use 5 as the next digit of our solution. 
Result so far: 175.0
Subtract 200 from 221 to get 21.
Take the next digit (5) from the dividend and append it to 21, then repeat: 215 / 40

Let's proceed to step 5:
When dividing 215 by 40, we get 5 with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 1755.0
Deduct 200 from 215 and we're left with 15.
Include the next digit (6) from the dividend after 15, then repeat: 156 / 40

Let's proceed to step 6:
If we divide 156 by 40, we get 3 and a remainder of 36.
Put 3 as the next digit of the answer. 
Result so far: 17553.0
Subtract 120 from 156 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 7:
The number 40 fits into 360 9 times, leaving a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 17553.9
Deduct 360 from 360 and we're left 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.

On to step 8:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 17553.9
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.

Step 9:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 17553.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.

The final outcome is 17553.9, with a leftover of 0.0.