We divide 162670 by 42
The aim is to understand the frequency of 42 in 162670.

Moving on to step 1:
1 divided by 42 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 42

Step 2:
42 goes into 16 0 times with a remainder of 16.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 16 and we're left with 16.
Bring next digit (2) of the dividend behind the 16 and repeat the process: 162 / 42

On to step 3:
42 goes into 162 3 times with a remainder of 36.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we take 126 away from 162, we end up with 36.
Grab the next digit (6) from the dividend, add it to 36, then carry on: 366 / 42

Step 4:
366 divided by 42 is 8 with a remainder of 30.
Record the quotient 8 as the next digit in the result. 
Result so far: 38.0
The remainder is 30 after subtracting 336 from 366.
Append the next digit (7) from the dividend to 30 and continue with: 307 / 42

Step 5:
If we divide 307 by 42, we get 7 and a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 387.0
Deduct 294 from 307 and we're left with 13.
Take the next digit (0) from the dividend and append it to 13, then repeat: 130 / 42

Advancing to step 6:
If we divide 130 by 42, we get 3 and a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 3873.0
Subtracting 126 from 130 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
42 can be fit into 40 0 times, resulting in a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 3873.0
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 8:
If we divide 400 by 42, we get 9 and a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 3873.09
If we take 378 away from 400, we end up 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 9:
The number 42 fits into 220 5 times, leaving a remainder of 10.
The next digit of our result is 5. 
Result so far: 3873.095
Subtracting 210 from 220 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 10:
The number 42 fits into 100 2 times, leaving a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 3873.0952
If we take 84 away from 100, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 11:
When dividing 160 by 42, we get 3 with a remainder of 34.
The number 3 becomes the next digit in our result. 
Result so far: 3873.09523
Deduct 126 from 160 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 12:
The number 42 fits into 340 8 times, leaving a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 3873.095238
The remainder is 4 after subtracting 336 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 13:
When dividing 40 by 42, we get 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 3873.095238
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 14:
If we divide 400 by 42, we get 9 and a remainder of 22.
Put 9 as the next digit of the answer. 
Result so far: 3873.09523809
If we take 378 away from 400, we end up 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.

Our division results in 3873.09523809 with a remaining 2.2e-08.