We divide 897247 by 40
The aim is to understand the frequency of 40 in 897247.

Going ahead to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Take the next digit (9) from the dividend and append it to 8, then repeat: 89 / 40

Advancing to step 2:
40 can be fit into 89 2 times, resulting in a remainder of 9.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 80 from 89 to get 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 40

Going ahead to step 3:
40 can be fit into 97 2 times, resulting in a remainder of 17.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
If we take 80 away from 97, we end up with 17.
Fetch the next digit (2) from the dividend, attach it to 17 and continue: 172 / 40

Advancing to step 4:
172 divided by 40 is 4 with a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 224.0
Subtracting 160 from 172 leaves us with 12.
Grab the next digit (4) from the dividend, add it to 12, then carry on: 124 / 40

Let's proceed to step 5:
The number 40 fits into 124 3 times, leaving a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 2243.0
Subtracting 120 from 124 leaves us with 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 40

On to step 6:
47 divided by 40 is 1 with a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 22431.0
Subtract 40 from 47 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 7:
When dividing 70 by 40, we get 1 with a remainder of 30.
The next digit of our result is 1. 
Result so far: 22431.1
If we subtract 40 from 70, we get 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:
When dividing 300 by 40, we get 7 with a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 22431.17
Deduct 280 from 300 and we're left 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:
40 can be fit into 200 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 22431.175
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:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 22431.175
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.

Step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 22431.175
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 22431.175, with a leftover of 0.0.