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

Advancing to step 1:
The number 40 fits into 8 0 times, leaving a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Bring next digit (8) of the dividend behind the 8 and repeat the process: 88 / 40

On to step 2:
If we divide 88 by 40, we get 2 and a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 8 after subtracting 80 from 88.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 40

Let's proceed to step 3:
87 divided by 40 is 2 with a remainder of 7.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
If we take 80 away from 87, we end up with 7.
Take the next digit (2) from the dividend and append it to 7, then repeat: 72 / 40

On to step 4:
The number 40 fits into 72 1 times, leaving a remainder of 32.
Put 1 as the next digit of the answer. 
Result so far: 221.0
If we take 40 away from 72, we end up with 32.
Grab the next digit (7) from the dividend, add it to 32, then carry on: 327 / 40

Advancing to step 5:
The number 40 fits into 327 8 times, leaving a remainder of 7.
Put 8 as the next digit of the answer. 
Result so far: 2218.0
Subtracting 320 from 327 leaves us with 7.
Take the next digit (2) from the dividend and append it to 7, then repeat: 72 / 40

Step 6:
When dividing 72 by 40, we get 1 with a remainder of 32.
Record the quotient 1 as the next digit in the result. 
Result so far: 22181.0
If we subtract 40 from 72, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 7:
40 goes into 320 8 times with a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 22181.8
If we take 320 away from 320, 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.

Step 8:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 22181.8
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.

Step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 22181.8
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.

Our division results in 22181.8 with a remaining 0.0.