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

On to step 1:
40 goes into 3 0 times with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (4) from the dividend and append it to 3, then repeat: 34 / 40

On to step 2:
When dividing 34 by 40, we get 0 with a remainder of 34.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 34 and we're left with 34.
Grab the next digit (3) from the dividend, add it to 34, then carry on: 343 / 40

Step 3:
40 goes into 343 8 times with a remainder of 23.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we take 320 away from 343, we end up with 23.
Bring next digit (3) of the dividend behind the 23 and repeat the process: 233 / 40

On to step 4:
40 can be fit into 233 5 times, resulting in a remainder of 33.
Record the quotient 5 as the next digit in the result. 
Result so far: 85.0
If we subtract 200 from 233, we get 33.
Take the next digit (0) from the dividend and append it to 33, then repeat: 330 / 40

Advancing to step 5:
330 divided by 40 is 8 with a remainder of 10.
Write down 8 as next digit of the result. 
Result so far: 858.0
The remainder is 10 after subtracting 320 from 330.
Grab the next digit (1) from the dividend, add it to 10, then carry on: 101 / 40

Step 6:
When dividing 101 by 40, we get 2 with a remainder of 21.
Write down 2 as next digit of the result. 
Result so far: 8582.0
If we subtract 80 from 101, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 7:
When dividing 210 by 40, we get 5 with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 8582.5
If we subtract 200 from 210, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
If we divide 100 by 40, we get 2 and a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 8582.52
Deduct 80 from 100 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.

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: 8582.525
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 8582.525
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.

On to 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: 8582.525
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.

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