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

Let's proceed to step 1:
9 divided by 42 is 0 with a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Take the next digit (7) from the dividend and append it to 9, then repeat: 97 / 42

Going ahead to step 2:
97 divided by 42 is 2 with a remainder of 13.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 84 from 97, we get 13.
Append the next digit (8) from the dividend to 13 and continue with: 138 / 42

Let's proceed to step 3:
138 divided by 42 is 3 with a remainder of 12.
The number 3 becomes the next digit in our result. 
Result so far: 23.0
If we take 126 away from 138, we end up with 12.
Append the next digit (3) from the dividend to 12 and continue with: 123 / 42

Let's proceed to step 4:
42 goes into 123 2 times with a remainder of 39.
Record the quotient 2 as the next digit in the result. 
Result so far: 232.0
If we take 84 away from 123, we end up with 39.
Append the next digit (5) from the dividend to 39 and continue with: 395 / 42

Advancing to step 5:
42 can be fit into 395 9 times, resulting in a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 2329.0
Subtracting 378 from 395 leaves us with 17.
Grab the next digit (4) from the dividend, add it to 17, then carry on: 174 / 42

Advancing to step 6:
If we divide 174 by 42, we get 4 and a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 23294.0
If we take 168 away from 174, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 7:
42 can be fit into 60 1 times, resulting in a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 23294.1
Subtract 42 from 60 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 8:
42 goes into 180 4 times with a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 23294.14
If we take 168 away from 180, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 9:
42 goes into 120 2 times with a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 23294.142
Subtracting 84 from 120 leaves us with 36.
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 10:
42 can be fit into 360 8 times, resulting in a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 23294.1428
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.

Step 11:
When dividing 240 by 42, we get 5 with a remainder of 30.
The next digit of our result is 5. 
Result so far: 23294.14285
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.

Moving on to step 12:
300 divided by 42 is 7 with a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 23294.142857
Subtract 294 from 300 to 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.

On to step 13:
If we divide 60 by 42, we get 1 and a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 23294.1428571
If we take 42 away from 60, we end up 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.

Let's proceed to step 14:
The number 42 fits into 180 4 times, leaving a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 23294.14285714
If we take 168 away from 180, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The quotient of the division is 23294.14285714, and the remainder is 1.2e-08.