663266 ÷ 40 
The aim is to understand the frequency of 40 in 663266.

Let's proceed to step 1:
The number 40 fits into 6 0 times, leaving a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Take the next digit (6) from the dividend and append it to 6, then repeat: 66 / 40

Moving on to step 2:
If we divide 66 by 40, we get 1 and a remainder of 26.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 40 from 66 leaves us with 26.
Append the next digit (3) from the dividend to 26 and continue with: 263 / 40

Step 3:
When dividing 263 by 40, we get 6 with a remainder of 23.
Put 6 as the next digit of the answer. 
Result so far: 16.0
Subtract 240 from 263 to get 23.
Append the next digit (2) from the dividend to 23 and continue with: 232 / 40

On to step 4:
The number 40 fits into 232 5 times, leaving a remainder of 32.
Record the quotient 5 as the next digit in the result. 
Result so far: 165.0
Subtracting 200 from 232 leaves us with 32.
Fetch the next digit (6) from the dividend, attach it to 32 and continue: 326 / 40

Moving on to step 5:
When dividing 326 by 40, we get 8 with a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 1658.0
The remainder is 6 after subtracting 320 from 326.
Grab the next digit (6) from the dividend, add it to 6, then carry on: 66 / 40

Going ahead to step 6:
40 goes into 66 1 times with a remainder of 26.
Write down 1 as next digit of the result. 
Result so far: 16581.0
If we take 40 away from 66, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 7:
40 can be fit into 260 6 times, resulting in a remainder of 20.
Use 6 as the next digit of our solution. 
Result so far: 16581.6
Subtract 240 from 260 to 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.

Moving on to step 8:
200 divided by 40 is 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 16581.65
If we take 200 away from 200, 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.

Moving on to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 16581.65
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.

Advancing to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 16581.65
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.

Our division results in 16581.65 with a remaining 0.0.