We look at the division of 40209299 by 840 
The aim is to understand the frequency of 840 in 40209299.

Moving on to step 1:
840 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 840

Let's proceed to step 2:
When dividing 40 by 840, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Fetch the next digit (2) from the dividend, attach it to 40 and continue: 402 / 840

Going ahead to step 3:
The number 840 fits into 402 0 times, leaving a remainder of 402.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 402 after subtracting 0 from 402.
Take the next digit (0) from the dividend and append it to 402, then repeat: 4020 / 840

Step 4:
4020 divided by 840 is 4 with a remainder of 660.
The next digit of our result is 4. 
Result so far: 4.0
Deduct 3360 from 4020 and we're left with 660.
Append the next digit (9) from the dividend to 660 and continue with: 6609 / 840

Going ahead to step 5:
840 goes into 6609 7 times with a remainder of 729.
Write down 7 as next digit of the result. 
Result so far: 47.0
The remainder is 729 after subtracting 5880 from 6609.
Bring next digit (2) of the dividend behind the 729 and repeat the process: 7292 / 840

Advancing to step 6:
The number 840 fits into 7292 8 times, leaving a remainder of 572.
Put 8 as the next digit of the answer. 
Result so far: 478.0
The remainder is 572 after subtracting 6720 from 7292.
Include the next digit (9) from the dividend after 572, then repeat: 5729 / 840

Let's proceed to step 7:
If we divide 5729 by 840, we get 6 and a remainder of 689.
Use 6 as the next digit of our solution. 
Result so far: 4786.0
If we take 5040 away from 5729, we end up with 689.
Grab the next digit (9) from the dividend, add it to 689, then carry on: 6899 / 840

On to step 8:
When dividing 6899 by 840, we get 8 with a remainder of 179.
The number 8 becomes the next digit in our result. 
Result so far: 47868.0
Subtracting 6720 from 6899 leaves us with 179.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1790, and continue the process.

Let's proceed to step 9:
840 goes into 1790 2 times with a remainder of 110.
Use 2 as the next digit of our solution. 
Result so far: 47868.2
The remainder is 110 after subtracting 1680 from 1790.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Let's proceed to step 10:
The number 840 fits into 1100 1 times, leaving a remainder of 260.
Put 1 as the next digit of the answer. 
Result so far: 47868.21
Subtracting 840 from 1100 leaves us with 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

On to step 11:
840 goes into 2600 3 times with a remainder of 80.
The number 3 becomes the next digit in our result. 
Result so far: 47868.213
If we take 2520 away from 2600, we end up with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Let's proceed to step 12:
800 divided by 840 is 0 with a remainder of 800.
Use 0 as the next digit of our solution. 
Result so far: 47868.213
Deduct 0 from 800 and we're left with 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8000, and continue the process.

On to step 13:
840 can be fit into 8000 9 times, resulting in a remainder of 440.
The number 9 becomes the next digit in our result. 
Result so far: 47868.21309
Subtracting 7560 from 8000 leaves us with 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

On to step 14:
When dividing 4400 by 840, we get 5 with a remainder of 200.
Record the quotient 5 as the next digit in the result. 
Result so far: 47868.213095
If we subtract 4200 from 4400, we get 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2000, and continue the process.

Advancing to step 15:
When dividing 2000 by 840, we get 2 with a remainder of 320.
The next digit of our result is 2. 
Result so far: 47868.2130952
Subtract 1680 from 2000 to get 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

On to step 16:
840 goes into 3200 3 times with a remainder of 680.
Put 3 as the next digit of the answer. 
Result so far: 47868.21309523
The remainder is 680 after subtracting 2520 from 3200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6800, and continue the process.

After the division, we end up with 47868.21309523 and a remainder of 6.8e-07.