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

Let's proceed to step 1:
If we divide 3 by 42, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 42

Step 2:
If we divide 38 by 42, we get 0 and a remainder of 38.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 38, we get 38.
Append the next digit (9) from the dividend to 38 and continue with: 389 / 42

Advancing to step 3:
389 divided by 42 is 9 with a remainder of 11.
The next digit of our result is 9. 
Result so far: 9.0
Subtract 378 from 389 to get 11.
Take the next digit (7) from the dividend and append it to 11, then repeat: 117 / 42

Moving on to step 4:
42 goes into 117 2 times with a remainder of 33.
Write down 2 as next digit of the result. 
Result so far: 92.0
The remainder is 33 after subtracting 84 from 117.
Fetch the next digit (6) from the dividend, attach it to 33 and continue: 336 / 42

On to step 5:
When dividing 336 by 42, we get 8 with a remainder of 0.
The next digit of our result is 8. 
Result so far: 928.0
If we take 336 away from 336, we end up with 0.
Take the next digit (8) from the dividend and append it to 0, then repeat: 8 / 42

Let's proceed to step 6:
8 divided by 42 is 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 9280.0
If we take 0 away from 8, we end up with 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 7:
42 goes into 80 1 times with a remainder of 38.
The number 1 becomes the next digit in our result. 
Result so far: 9280.1
Subtracting 42 from 80 leaves us with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 8:
If we divide 380 by 42, we get 9 and a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 9280.19
If we subtract 378 from 380, 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 9:
42 can be fit into 20 0 times, resulting in a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 9280.19
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.

Let's proceed to step 10:
42 can be fit into 200 4 times, resulting in a remainder of 32.
Record the quotient 4 as the next digit in the result. 
Result so far: 9280.1904
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.

Advancing to step 11:
320 divided by 42 is 7 with a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 9280.19047
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.

Going ahead to step 12:
If we divide 260 by 42, we get 6 and a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 9280.190476
Subtracting 252 from 260 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 13:
80 divided by 42 is 1 with a remainder of 38.
The number 1 becomes the next digit in our result. 
Result so far: 9280.1904761
Subtracting 42 from 80 leaves us with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 14:
42 goes into 380 9 times with a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 9280.19047619
If we subtract 378 from 380, 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.

After the division, we end up with 9280.19047619 and a remainder of 2e-09.