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

Step 1:
8 divided by 42 is 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Take the next digit (3) from the dividend and append it to 8, then repeat: 83 / 42

Advancing to step 2:
When dividing 83 by 42, we get 1 with a remainder of 41.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 42 from 83 and we're left with 41.
Bring next digit (9) of the dividend behind the 41 and repeat the process: 419 / 42

Step 3:
The number 42 fits into 419 9 times, leaving a remainder of 41.
Write down 9 as next digit of the result. 
Result so far: 19.0
If we subtract 378 from 419, we get 41.
Append the next digit (7) from the dividend to 41 and continue with: 417 / 42

On to step 4:
42 goes into 417 9 times with a remainder of 39.
The next digit of our result is 9. 
Result so far: 199.0
If we subtract 378 from 417, we get 39.
Grab the next digit (7) from the dividend, add it to 39, then carry on: 397 / 42

Let's proceed to step 5:
If we divide 397 by 42, we get 9 and a remainder of 19.
Put 9 as the next digit of the answer. 
Result so far: 1999.0
Subtract 378 from 397 to get 19.
Append the next digit (8) from the dividend to 19 and continue with: 198 / 42

Let's proceed to step 6:
When dividing 198 by 42, we get 4 with a remainder of 30.
The number 4 becomes the next digit in our result. 
Result so far: 19994.0
Deduct 168 from 198 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.

Advancing to step 7:
300 divided by 42 is 7 with a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 19994.7
Deduct 294 from 300 and we're left 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.

Let's proceed to step 8:
When dividing 60 by 42, we get 1 with a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 19994.71
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.

Step 9:
42 can be fit into 180 4 times, resulting in a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 19994.714
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.

Advancing to step 10:
42 can be fit into 120 2 times, resulting in a remainder of 36.
The number 2 becomes the next digit in our result. 
Result so far: 19994.7142
If we subtract 84 from 120, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 11:
360 divided by 42 is 8 with a remainder of 24.
Record the quotient 8 as the next digit in the result. 
Result so far: 19994.71428
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 12:
If we divide 240 by 42, we get 5 and a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 19994.714285
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.

Let's proceed to step 13:
42 goes into 300 7 times with a remainder of 6.
Put 7 as the next digit of the answer. 
Result so far: 19994.7142857
Deduct 294 from 300 and we're left 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.

Step 14:
If we divide 60 by 42, we get 1 and a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 19994.71428571
The remainder is 18 after subtracting 42 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final outcome is 19994.71428571, with a leftover of 1.8e-08.