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

Step 1:
40 can be fit into 9 0 times, resulting in a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Include the next digit (7) from the dividend after 9, then repeat: 97 / 40

Advancing to step 2:
40 can be fit into 97 2 times, resulting in a remainder of 17.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 80 from 97 leaves us with 17.
Append the next digit (5) from the dividend to 17 and continue with: 175 / 40

Going ahead to step 3:
If we divide 175 by 40, we get 4 and a remainder of 15.
Record the quotient 4 as the next digit in the result. 
Result so far: 24.0
If we take 160 away from 175, we end up with 15.
Take the next digit (8) from the dividend and append it to 15, then repeat: 158 / 40

Moving on to step 4:
40 can be fit into 158 3 times, resulting in a remainder of 38.
Write down 3 as next digit of the result. 
Result so far: 243.0
If we subtract 120 from 158, we get 38.
Append the next digit (0) from the dividend to 38 and continue with: 380 / 40

Let's proceed to step 5:
The number 40 fits into 380 9 times, leaving a remainder of 20.
Record the quotient 9 as the next digit in the result. 
Result so far: 2439.0
Deduct 360 from 380 and we're left with 20.
Include the next digit (2) from the dividend after 20, then repeat: 202 / 40

Moving on to step 6:
If we divide 202 by 40, we get 5 and a remainder of 2.
The next digit of our result is 5. 
Result so far: 24395.0
If we subtract 200 from 202, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
40 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 24395.0
If we subtract 0 from 20, we get 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 8:
40 goes into 200 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 24395.05
Deduct 200 from 200 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.

Advancing to step 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 24395.05
Deduct 0 from 0 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.

Going ahead to step 10:
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: 24395.05
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 final result is 24395.05 with a remainder of 0.0.