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

On to step 1:
42 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 42

On to step 2:
If we divide 38 by 42, we get 0 and a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 38, we end up with 38.
Append the next digit (9) from the dividend to 38 and continue with: 389 / 42

On to step 3:
389 divided by 42 is 9 with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 9.0
Subtract 378 from 389 to get 11.
Bring next digit (1) of the dividend behind the 11 and repeat the process: 111 / 42

Moving on to step 4:
When dividing 111 by 42, we get 2 with a remainder of 27.
The next digit of our result is 2. 
Result so far: 92.0
Deduct 84 from 111 and we're left with 27.
Fetch the next digit (3) from the dividend, attach it to 27 and continue: 273 / 42

Step 5:
If we divide 273 by 42, we get 6 and a remainder of 21.
Use 6 as the next digit of our solution. 
Result so far: 926.0
Deduct 252 from 273 and we're left with 21.
Take the next digit (2) from the dividend and append it to 21, then repeat: 212 / 42

Advancing to step 6:
When dividing 212 by 42, we get 5 with a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 9265.0
If we subtract 210 from 212, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
42 goes into 20 0 times with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 9265.0
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 8:
When dividing 200 by 42, we get 4 with a remainder of 32.
Record the quotient 4 as the next digit in the result. 
Result so far: 9265.04
If we take 168 away from 200, 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.

On to step 9:
If we divide 320 by 42, we get 7 and a remainder of 26.
Use 7 as the next digit of our solution. 
Result so far: 9265.047
Subtracting 294 from 320 leaves us 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.

Going ahead to step 10:
260 divided by 42 is 6 with a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 9265.0476
If we subtract 252 from 260, we 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.

On to step 11:
When dividing 80 by 42, we get 1 with a remainder of 38.
Put 1 as the next digit of the answer. 
Result so far: 9265.04761
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.

Moving on to step 12:
380 divided by 42 is 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 9265.047619
Subtract 378 from 380 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 13:
42 can be fit into 20 0 times, resulting in a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 9265.047619
Subtract 0 from 20 to 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.

Moving on to step 14:
The number 42 fits into 200 4 times, leaving a remainder of 32.
Use 4 as the next digit of our solution. 
Result so far: 9265.04761904
Deduct 168 from 200 and we're left 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.

After the division, we end up with 9265.04761904 and a remainder of 3.2e-08.