We look at the division of 245558 by 42 
The aim is to understand the frequency of 42 in 245558.

Moving on to step 1:
2 divided by 42 is 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 42

Step 2:
42 goes into 24 0 times with a remainder of 24.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 24, we end up with 24.
Bring next digit (5) of the dividend behind the 24 and repeat the process: 245 / 42

Advancing to step 3:
42 goes into 245 5 times with a remainder of 35.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 210 from 245 leaves us with 35.
Include the next digit (5) from the dividend after 35, then repeat: 355 / 42

Moving on to step 4:
The number 42 fits into 355 8 times, leaving a remainder of 19.
The next digit of our result is 8. 
Result so far: 58.0
If we take 336 away from 355, we end up with 19.
Include the next digit (5) from the dividend after 19, then repeat: 195 / 42

Going ahead to step 5:
If we divide 195 by 42, we get 4 and a remainder of 27.
Put 4 as the next digit of the answer. 
Result so far: 584.0
Deduct 168 from 195 and we're left with 27.
Take the next digit (8) from the dividend and append it to 27, then repeat: 278 / 42

Let's proceed to step 6:
42 can be fit into 278 6 times, resulting in a remainder of 26.
Put 6 as the next digit of the answer. 
Result so far: 5846.0
Deduct 252 from 278 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 7:
42 can be fit into 260 6 times, resulting in a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 5846.6
The remainder is 8 after subtracting 252 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 8:
80 divided by 42 is 1 with a remainder of 38.
Write down 1 as next digit of the result. 
Result so far: 5846.61
If we take 42 away from 80, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Moving on to step 9:
42 goes into 380 9 times with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 5846.619
The remainder is 2 after subtracting 378 from 380.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 10:
When dividing 20 by 42, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 5846.619
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 11:
42 goes into 200 4 times with a remainder of 32.
The next digit of our result is 4. 
Result so far: 5846.61904
The remainder is 32 after subtracting 168 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 12:
If we divide 320 by 42, we get 7 and a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 5846.619047
If we take 294 away from 320, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 13:
260 divided by 42 is 6 with a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 5846.6190476
The remainder is 8 after subtracting 252 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 14:
If we divide 80 by 42, we get 1 and a remainder of 38.
Record the quotient 1 as the next digit in the result. 
Result so far: 5846.61904761
If we subtract 42 from 80, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

The final outcome is 5846.61904761, with a leftover of 3.8e-08.