Let's divide 42470898 by 840
The aim is to understand the frequency of 840 in 42470898.

Advancing to step 1:
When dividing 4 by 840, we get 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (2) from the dividend, add it to 4, then carry on: 42 / 840

Let's proceed to step 2:
If we divide 42 by 840, we get 0 and a remainder of 42.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 42, we get 42.
Include the next digit (4) from the dividend after 42, then repeat: 424 / 840

Step 3:
When dividing 424 by 840, we get 0 with a remainder of 424.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 424, we get 424.
Bring next digit (7) of the dividend behind the 424 and repeat the process: 4247 / 840

Let's proceed to step 4:
If we divide 4247 by 840, we get 5 and a remainder of 47.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we take 4200 away from 4247, we end up with 47.
Fetch the next digit (0) from the dividend, attach it to 47 and continue: 470 / 840

On to step 5:
840 goes into 470 0 times with a remainder of 470.
Use 0 as the next digit of our solution. 
Result so far: 50.0
Subtract 0 from 470 to get 470.
Append the next digit (8) from the dividend to 470 and continue with: 4708 / 840

Advancing to step 6:
When dividing 4708 by 840, we get 5 with a remainder of 508.
Record the quotient 5 as the next digit in the result. 
Result so far: 505.0
The remainder is 508 after subtracting 4200 from 4708.
Grab the next digit (9) from the dividend, add it to 508, then carry on: 5089 / 840

Step 7:
The number 840 fits into 5089 6 times, leaving a remainder of 49.
Write down 6 as next digit of the result. 
Result so far: 5056.0
If we take 5040 away from 5089, we end up with 49.
Grab the next digit (8) from the dividend, add it to 49, then carry on: 498 / 840

Advancing to step 8:
840 can be fit into 498 0 times, resulting in a remainder of 498.
Write down 0 as next digit of the result. 
Result so far: 50560.0
The remainder is 498 after subtracting 0 from 498.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4980, and continue the process.

On to step 9:
If we divide 4980 by 840, we get 5 and a remainder of 780.
Write down 5 as next digit of the result. 
Result so far: 50560.5
If we subtract 4200 from 4980, we get 780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7800, and continue the process.

Step 10:
840 goes into 7800 9 times with a remainder of 240.
Record the quotient 9 as the next digit in the result. 
Result so far: 50560.59
If we take 7560 away from 7800, we end up with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Advancing to step 11:
840 can be fit into 2400 2 times, resulting in a remainder of 720.
Put 2 as the next digit of the answer. 
Result so far: 50560.592
The remainder is 720 after subtracting 1680 from 2400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7200, and continue the process.

Let's proceed to step 12:
7200 divided by 840 is 8 with a remainder of 480.
The number 8 becomes the next digit in our result. 
Result so far: 50560.5928
Subtracting 6720 from 7200 leaves us with 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

On to step 13:
When dividing 4800 by 840, we get 5 with a remainder of 600.
Record the quotient 5 as the next digit in the result. 
Result so far: 50560.59285
Deduct 4200 from 4800 and we're left with 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

Step 14:
The number 840 fits into 6000 7 times, leaving a remainder of 120.
Record the quotient 7 as the next digit in the result. 
Result so far: 50560.592857
Subtracting 5880 from 6000 leaves us with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Going ahead to step 15:
1200 divided by 840 is 1 with a remainder of 360.
Use 1 as the next digit of our solution. 
Result so far: 50560.5928571
Subtracting 840 from 1200 leaves us with 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Step 16:
When dividing 3600 by 840, we get 4 with a remainder of 240.
Write down 4 as next digit of the result. 
Result so far: 50560.59285714
If we subtract 3360 from 3600, we get 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

The final outcome is 50560.59285714, with a leftover of 2.4e-07.