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

Advancing to step 1:
If we divide 2 by 42, we get 0 and a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Grab the next digit (6) from the dividend, add it to 2, then carry on: 26 / 42

Let's proceed to step 2:
26 divided by 42 is 0 with a remainder of 26.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 26 to get 26.
Take the next digit (6) from the dividend and append it to 26, then repeat: 266 / 42

Going ahead to step 3:
42 goes into 266 6 times with a remainder of 14.
Write down 6 as next digit of the result. 
Result so far: 6.0
Subtract 252 from 266 to get 14.
Grab the next digit (5) from the dividend, add it to 14, then carry on: 145 / 42

On to step 4:
42 goes into 145 3 times with a remainder of 19.
Write down 3 as next digit of the result. 
Result so far: 63.0
Subtract 126 from 145 to get 19.
Take the next digit (0) from the dividend and append it to 19, then repeat: 190 / 42

Moving on to step 5:
42 can be fit into 190 4 times, resulting in a remainder of 22.
The number 4 becomes the next digit in our result. 
Result so far: 634.0
If we subtract 168 from 190, we get 22.
Bring next digit (6) of the dividend behind the 22 and repeat the process: 226 / 42

Advancing to step 6:
If we divide 226 by 42, we get 5 and a remainder of 16.
Use 5 as the next digit of our solution. 
Result so far: 6345.0
The remainder is 16 after subtracting 210 from 226.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 7:
42 can be fit into 160 3 times, resulting in a remainder of 34.
Use 3 as the next digit of our solution. 
Result so far: 6345.3
The remainder is 34 after subtracting 126 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 8:
When dividing 340 by 42, we get 8 with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 6345.38
Deduct 336 from 340 and we're left 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.

Let's proceed to step 9:
42 can be fit into 40 0 times, resulting in a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 6345.38
Deduct 0 from 40 and we're left 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.

Going ahead to step 10:
The number 42 fits into 400 9 times, leaving a remainder of 22.
Use 9 as the next digit of our solution. 
Result so far: 6345.3809
The remainder is 22 after subtracting 378 from 400.
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 11:
The number 42 fits into 220 5 times, leaving a remainder of 10.
The next digit of our result is 5. 
Result so far: 6345.38095
Deduct 210 from 220 and we're left 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.

Advancing to step 12:
If we divide 100 by 42, we get 2 and a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 6345.380952
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.

On to step 13:
When dividing 160 by 42, we get 3 with a remainder of 34.
The next digit of our result is 3. 
Result so far: 6345.3809523
The remainder is 34 after subtracting 126 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 14:
The number 42 fits into 340 8 times, leaving a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 6345.38095238
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.

The quotient of the division is 6345.38095238, and the remainder is 4e-09.