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

On to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Take the next digit (8) from the dividend and append it to 8, then repeat: 88 / 40

Going ahead to step 2:
40 can be fit into 88 2 times, resulting in a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 80 from 88, we get 8.
Bring next digit (0) of the dividend behind the 8 and repeat the process: 80 / 40

Moving on to step 3:
40 goes into 80 2 times with a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 22.0
If we subtract 80 from 80, we get 0.
Fetch the next digit (5) from the dividend, attach it to 0 and continue: 5 / 40

On to step 4:
When dividing 5 by 40, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 220.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (2) from the dividend after 5, then repeat: 52 / 40

On to step 5:
52 divided by 40 is 1 with a remainder of 12.
Use 1 as the next digit of our solution. 
Result so far: 2201.0
If we subtract 40 from 52, we get 12.
Bring next digit (7) of the dividend behind the 12 and repeat the process: 127 / 40

Moving on to step 6:
127 divided by 40 is 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 22013.0
Subtracting 120 from 127 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 7:
40 can be fit into 70 1 times, resulting in a remainder of 30.
Write down 1 as next digit of the result. 
Result so far: 22013.1
Deduct 40 from 70 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.

Advancing to step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
The next digit of our result is 7. 
Result so far: 22013.17
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.

On to step 9:
200 divided by 40 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 22013.175
If we subtract 200 from 200, 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.

On to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 22013.175
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.

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

The quotient of the division is 22013.175, and the remainder is 0.0.