717587 divided by 40 
The aim is to understand the frequency of 40 in 717587.

Advancing to step 1:
The number 40 fits into 7 0 times, leaving a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Grab the next digit (1) from the dividend, add it to 7, then carry on: 71 / 40

Step 2:
71 divided by 40 is 1 with a remainder of 31.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 40 from 71 leaves us with 31.
Grab the next digit (7) from the dividend, add it to 31, then carry on: 317 / 40

Step 3:
40 goes into 317 7 times with a remainder of 37.
Write down 7 as next digit of the result. 
Result so far: 17.0
If we take 280 away from 317, we end up with 37.
Bring next digit (5) of the dividend behind the 37 and repeat the process: 375 / 40

Step 4:
The number 40 fits into 375 9 times, leaving a remainder of 15.
The next digit of our result is 9. 
Result so far: 179.0
The remainder is 15 after subtracting 360 from 375.
Fetch the next digit (8) from the dividend, attach it to 15 and continue: 158 / 40

On to step 5:
If we divide 158 by 40, we get 3 and a remainder of 38.
Write down 3 as next digit of the result. 
Result so far: 1793.0
Deduct 120 from 158 and we're left with 38.
Include the next digit (7) from the dividend after 38, then repeat: 387 / 40

Let's proceed to step 6:
387 divided by 40 is 9 with a remainder of 27.
The next digit of our result is 9. 
Result so far: 17939.0
Subtract 360 from 387 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 7:
270 divided by 40 is 6 with a remainder of 30.
The number 6 becomes the next digit in our result. 
Result so far: 17939.6
Deduct 240 from 270 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 17939.67
If we take 280 away from 300, 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.

Step 9:
200 divided by 40 is 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 17939.675
The remainder is 0 after subtracting 200 from 200.
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 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 17939.675
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.

Advancing to step 11:
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: 17939.675
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 quotient of the division is 17939.675, and the remainder is 0.0.