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

On to step 1:
3 divided by 42 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Fetch the next digit (6) from the dividend, attach it to 3 and continue: 36 / 42

On to step 2:
36 divided by 42 is 0 with a remainder of 36.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 36, we end up with 36.
Take the next digit (5) from the dividend and append it to 36, then repeat: 365 / 42

Advancing to step 3:
42 can be fit into 365 8 times, resulting in a remainder of 29.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Subtract 336 from 365 to get 29.
Take the next digit (2) from the dividend and append it to 29, then repeat: 292 / 42

On to step 4:
If we divide 292 by 42, we get 6 and a remainder of 40.
Put 6 as the next digit of the answer. 
Result so far: 86.0
Subtracting 252 from 292 leaves us with 40.
Take the next digit (3) from the dividend and append it to 40, then repeat: 403 / 42

Step 5:
42 can be fit into 403 9 times, resulting in a remainder of 25.
The next digit of our result is 9. 
Result so far: 869.0
If we take 378 away from 403, we end up with 25.
Fetch the next digit (0) from the dividend, attach it to 25 and continue: 250 / 42

Moving on to step 6:
250 divided by 42 is 5 with a remainder of 40.
The number 5 becomes the next digit in our result. 
Result so far: 8695.0
If we take 210 away from 250, we end up 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.

On to step 7:
42 goes into 400 9 times with a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 8695.9
Deduct 378 from 400 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.

On to step 8:
42 goes into 220 5 times with a remainder of 10.
The next digit of our result is 5. 
Result so far: 8695.95
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.

On to step 9:
If we divide 100 by 42, we get 2 and a remainder of 16.
The number 2 becomes the next digit in our result. 
Result so far: 8695.952
Deduct 84 from 100 and we're left 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.

Step 10:
160 divided by 42 is 3 with a remainder of 34.
The next digit of our result is 3. 
Result so far: 8695.9523
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.

Moving on to step 11:
The number 42 fits into 340 8 times, leaving a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 8695.95238
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.

Advancing to step 12:
The number 42 fits into 40 0 times, leaving a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 8695.95238
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.

Moving on to step 13:
400 divided by 42 is 9 with a remainder of 22.
Put 9 as the next digit of the answer. 
Result so far: 8695.9523809
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.

Moving on to step 14:
If we divide 220 by 42, we get 5 and a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 8695.95238095
If we subtract 210 from 220, we 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.

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