We're dividing 359787 by 42 
The aim is to understand the frequency of 42 in 359787.

Step 1:
When dividing 3 by 42, we get 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (5) from the dividend to 3 and continue with: 35 / 42

Moving on to step 2:
The number 42 fits into 35 0 times, leaving a remainder of 35.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 35, we get 35.
Take the next digit (9) from the dividend and append it to 35, then repeat: 359 / 42

Let's proceed to step 3:
The number 42 fits into 359 8 times, leaving a remainder of 23.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
If we take 336 away from 359, we end up with 23.
Bring next digit (7) of the dividend behind the 23 and repeat the process: 237 / 42

Moving on to step 4:
42 goes into 237 5 times with a remainder of 27.
Write down 5 as next digit of the result. 
Result so far: 85.0
The remainder is 27 after subtracting 210 from 237.
Take the next digit (8) from the dividend and append it to 27, then repeat: 278 / 42

Step 5:
278 divided by 42 is 6 with a remainder of 26.
Write down 6 as next digit of the result. 
Result so far: 856.0
The remainder is 26 after subtracting 252 from 278.
Take the next digit (7) from the dividend and append it to 26, then repeat: 267 / 42

Step 6:
When dividing 267 by 42, we get 6 with a remainder of 15.
Write down 6 as next digit of the result. 
Result so far: 8566.0
Subtract 252 from 267 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 7:
If we divide 150 by 42, we get 3 and a remainder of 24.
Put 3 as the next digit of the answer. 
Result so far: 8566.3
Subtracting 126 from 150 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 8:
When dividing 240 by 42, we get 5 with a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 8566.35
Subtract 210 from 240 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 9:
If we divide 300 by 42, we get 7 and a remainder of 6.
The number 7 becomes the next digit in our result. 
Result so far: 8566.357
If we subtract 294 from 300, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 10:
42 goes into 60 1 times with a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 8566.3571
Deduct 42 from 60 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 11:
42 goes into 180 4 times with a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 8566.35714
Subtract 168 from 180 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 12:
If we divide 120 by 42, we get 2 and a remainder of 36.
Write down 2 as next digit of the result. 
Result so far: 8566.357142
The remainder is 36 after subtracting 84 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 13:
When dividing 360 by 42, we get 8 with a remainder of 24.
The next digit of our result is 8. 
Result so far: 8566.3571428
If we take 336 away from 360, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 14:
42 goes into 240 5 times with a remainder of 30.
The next digit of our result is 5. 
Result so far: 8566.35714285
Deduct 210 from 240 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

In conclusion, the division gives 8566.35714285 with a balance of 3e-08.