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

Advancing to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Grab the next digit (4) from the dividend, add it to 8, then carry on: 84 / 40

Let's proceed to step 2:
40 can be fit into 84 2 times, resulting in a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 80 from 84 leaves us with 4.
Fetch the next digit (2) from the dividend, attach it to 4 and continue: 42 / 40

Let's proceed to step 3:
42 divided by 40 is 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
Subtract 40 from 42 to get 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 40

Let's proceed to step 4:
If we divide 29 by 40, we get 0 and a remainder of 29.
The next digit of our result is 0. 
Result so far: 210.0
If we take 0 away from 29, we end up with 29.
Fetch the next digit (8) from the dividend, attach it to 29 and continue: 298 / 40

Moving on to step 5:
If we divide 298 by 40, we get 7 and a remainder of 18.
The next digit of our result is 7. 
Result so far: 2107.0
If we subtract 280 from 298, we get 18.
Fetch the next digit (2) from the dividend, attach it to 18 and continue: 182 / 40

On to step 6:
The number 40 fits into 182 4 times, leaving a remainder of 22.
Record the quotient 4 as the next digit in the result. 
Result so far: 21074.0
Deduct 160 from 182 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 7:
When dividing 220 by 40, we get 5 with a remainder of 20.
Write down 5 as next digit of the result. 
Result so far: 21074.5
Subtract 200 from 220 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:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 21074.55
Deduct 200 from 200 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 21074.55, and the remainder is 0.0.