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

Step 1:
If we divide 1 by 42, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 42

Step 2:
When dividing 16 by 42, we get 0 with a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 16 to get 16.
Append the next digit (0) from the dividend to 16 and continue with: 160 / 42

On to step 3:
The number 42 fits into 160 3 times, leaving a remainder of 34.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 126 from 160, we get 34.
Grab the next digit (5) from the dividend, add it to 34, then carry on: 345 / 42

On to step 4:
If we divide 345 by 42, we get 8 and a remainder of 9.
Record the quotient 8 as the next digit in the result. 
Result so far: 38.0
Subtract 336 from 345 to get 9.
Bring next digit (0) of the dividend behind the 9 and repeat the process: 90 / 42

On to step 5:
The number 42 fits into 90 2 times, leaving a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 382.0
The remainder is 6 after subtracting 84 from 90.
Bring next digit (7) of the dividend behind the 6 and repeat the process: 67 / 42

Step 6:
42 goes into 67 1 times with a remainder of 25.
Record the quotient 1 as the next digit in the result. 
Result so far: 3821.0
Subtracting 42 from 67 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 7:
42 can be fit into 250 5 times, resulting in a remainder of 40.
Record the quotient 5 as the next digit in the result. 
Result so far: 3821.5
Subtracting 210 from 250 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 8:
The number 42 fits into 400 9 times, leaving a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 3821.59
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.

Step 9:
42 can be fit into 220 5 times, resulting in a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 3821.595
Subtract 210 from 220 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 10:
42 goes into 100 2 times with a remainder of 16.
Record the quotient 2 as the next digit in the result. 
Result so far: 3821.5952
Subtract 84 from 100 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 11:
42 goes into 160 3 times with a remainder of 34.
Put 3 as the next digit of the answer. 
Result so far: 3821.59523
If we take 126 away from 160, we end up 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:
42 can be fit into 340 8 times, resulting in a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 3821.595238
Subtracting 336 from 340 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 13:
42 goes into 40 0 times with a remainder of 40.
The next digit of our result is 0. 
Result so far: 3821.595238
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.

Moving on to step 14:
If we divide 400 by 42, we get 9 and a remainder of 22.
The number 9 becomes the next digit in our result. 
Result so far: 3821.59523809
Subtracting 378 from 400 leaves us 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.

After the division, we end up with 3821.59523809 and a remainder of 2.2e-08.