Let's divide 109787 by 42
The aim is to understand the frequency of 42 in 109787.

Moving on to step 1:
1 divided by 42 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Bring next digit (0) of the dividend behind the 1 and repeat the process: 10 / 42

Moving on to step 2:
The number 42 fits into 10 0 times, leaving a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 10 leaves us with 10.
Take the next digit (9) from the dividend and append it to 10, then repeat: 109 / 42

Let's proceed to step 3:
If we divide 109 by 42, we get 2 and a remainder of 25.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 84 from 109 to get 25.
Fetch the next digit (7) from the dividend, attach it to 25 and continue: 257 / 42

Step 4:
When dividing 257 by 42, we get 6 with a remainder of 5.
Record the quotient 6 as the next digit in the result. 
Result so far: 26.0
If we subtract 252 from 257, we get 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 42

On to step 5:
42 goes into 58 1 times with a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 261.0
Subtract 42 from 58 to get 16.
Include the next digit (7) from the dividend after 16, then repeat: 167 / 42

Let's proceed to step 6:
The number 42 fits into 167 3 times, leaving a remainder of 41.
Put 3 as the next digit of the answer. 
Result so far: 2613.0
Subtracting 126 from 167 leaves us with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Let's proceed to step 7:
42 can be fit into 410 9 times, resulting in a remainder of 32.
Use 9 as the next digit of our solution. 
Result so far: 2613.9
If we take 378 away from 410, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Let's proceed to step 8:
The number 42 fits into 320 7 times, leaving a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 2613.97
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 9:
The number 42 fits into 260 6 times, leaving a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 2613.976
Subtract 252 from 260 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 10:
80 divided by 42 is 1 with a remainder of 38.
Record the quotient 1 as the next digit in the result. 
Result so far: 2613.9761
The remainder is 38 after subtracting 42 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Advancing to step 11:
42 can be fit into 380 9 times, resulting in a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 2613.97619
Deduct 378 from 380 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 12:
20 divided by 42 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 2613.97619
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 13:
When dividing 200 by 42, we get 4 with a remainder of 32.
The number 4 becomes the next digit in our result. 
Result so far: 2613.9761904
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.

Going ahead to step 14:
When dividing 320 by 42, we get 7 with a remainder of 26.
The number 7 becomes the next digit in our result. 
Result so far: 2613.97619047
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.

The final result is 2613.97619047 with a remainder of 2.6e-08.