We look at the division of 333320 by 40 
The aim is to understand the frequency of 40 in 333320.

Moving on to step 1:
When dividing 3 by 40, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (3) from the dividend and append it to 3, then repeat: 33 / 40

Let's proceed to step 2:
If we divide 33 by 40, we get 0 and a remainder of 33.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 33 to get 33.
Take the next digit (3) from the dividend and append it to 33, then repeat: 333 / 40

Advancing to step 3:
40 can be fit into 333 8 times, resulting in a remainder of 13.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Deduct 320 from 333 and we're left with 13.
Grab the next digit (3) from the dividend, add it to 13, then carry on: 133 / 40

On to step 4:
When dividing 133 by 40, we get 3 with a remainder of 13.
Put 3 as the next digit of the answer. 
Result so far: 83.0
Subtracting 120 from 133 leaves us with 13.
Take the next digit (2) from the dividend and append it to 13, then repeat: 132 / 40

Advancing to step 5:
The number 40 fits into 132 3 times, leaving a remainder of 12.
Put 3 as the next digit of the answer. 
Result so far: 833.0
If we subtract 120 from 132, we get 12.
Bring next digit (0) of the dividend behind the 12 and repeat the process: 120 / 40

On to step 6:
120 divided by 40 is 3 with a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 8333.0
Deduct 120 from 120 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.

Let's proceed to step 7:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 8333.0
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.

Let's proceed to step 8:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 8333.0
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 8333.0, and the remainder is 0.0.