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

Let's proceed to step 1:
When dividing 1 by 42, we get 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 42

Going ahead to step 2:
The number 42 fits into 18 0 times, leaving a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 18 leaves us with 18.
Grab the next digit (7) from the dividend, add it to 18, then carry on: 187 / 42

Let's proceed to step 3:
42 can be fit into 187 4 times, resulting in a remainder of 19.
Use 4 as the next digit of our solution. 
Result so far: 4.0
If we take 168 away from 187, we end up with 19.
Include the next digit (7) from the dividend after 19, then repeat: 197 / 42

On to step 4:
197 divided by 42 is 4 with a remainder of 29.
The next digit of our result is 4. 
Result so far: 44.0
If we subtract 168 from 197, we get 29.
Take the next digit (1) from the dividend and append it to 29, then repeat: 291 / 42

Let's proceed to step 5:
42 goes into 291 6 times with a remainder of 39.
The next digit of our result is 6. 
Result so far: 446.0
If we subtract 252 from 291, we get 39.
Grab the next digit (7) from the dividend, add it to 39, then carry on: 397 / 42

Step 6:
The number 42 fits into 397 9 times, leaving a remainder of 19.
Record the quotient 9 as the next digit in the result. 
Result so far: 4469.0
If we subtract 378 from 397, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 7:
42 goes into 190 4 times with a remainder of 22.
Use 4 as the next digit of our solution. 
Result so far: 4469.4
Deduct 168 from 190 and we're left 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.

Let's proceed to step 8:
When dividing 220 by 42, we get 5 with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 4469.45
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 9:
100 divided by 42 is 2 with a remainder of 16.
The next digit of our result is 2. 
Result so far: 4469.452
If we subtract 84 from 100, we 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.

On to step 10:
If we divide 160 by 42, we get 3 and a remainder of 34.
Write down 3 as next digit of the result. 
Result so far: 4469.4523
If we subtract 126 from 160, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 11:
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: 4469.45238
If we subtract 336 from 340, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 12:
When dividing 40 by 42, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 4469.45238
Subtracting 0 from 40 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.

Let's proceed to step 13:
42 can be fit into 400 9 times, resulting in a remainder of 22.
The next digit of our result is 9. 
Result so far: 4469.4523809
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.

Advancing to step 14:
220 divided by 42 is 5 with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 4469.45238095
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.

Our division results in 4469.45238095 with a remaining 1e-08.