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

Let's proceed to step 1:
If we divide 8 by 42, we get 0 and a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Bring next digit (0) of the dividend behind the 8 and repeat the process: 80 / 42

Going ahead to step 2:
42 goes into 80 1 times with a remainder of 38.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 42 from 80 and we're left with 38.
Bring next digit (0) of the dividend behind the 38 and repeat the process: 380 / 42

Going ahead to step 3:
If we divide 380 by 42, we get 9 and a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 19.0
Deduct 378 from 380 and we're left with 2.
Grab the next digit (6) from the dividend, add it to 2, then carry on: 26 / 42

Going ahead to step 4:
When dividing 26 by 42, we get 0 with a remainder of 26.
The number 0 becomes the next digit in our result. 
Result so far: 190.0
Subtracting 0 from 26 leaves us with 26.
Append the next digit (4) from the dividend to 26 and continue with: 264 / 42

Step 5:
If we divide 264 by 42, we get 6 and a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 1906.0
Subtracting 252 from 264 leaves us with 12.
Bring next digit (0) of the dividend behind the 12 and repeat the process: 120 / 42

Let's proceed to step 6:
120 divided by 42 is 2 with a remainder of 36.
Record the quotient 2 as the next digit in the result. 
Result so far: 19062.0
Deduct 84 from 120 and we're left 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.

Moving on to step 7:
42 goes into 360 8 times with a remainder of 24.
The next digit of our result is 8. 
Result so far: 19062.8
Subtract 336 from 360 to get 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 8:
When dividing 240 by 42, we get 5 with a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 19062.85
If we take 210 away from 240, we end up 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.

Step 9:
300 divided by 42 is 7 with a remainder of 6.
The next digit of our result is 7. 
Result so far: 19062.857
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.

Step 10:
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: 19062.8571
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 11:
42 can be fit into 180 4 times, resulting in a remainder of 12.
Use 4 as the next digit of our solution. 
Result so far: 19062.85714
The remainder is 12 after subtracting 168 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 12:
42 goes into 120 2 times with a remainder of 36.
Write down 2 as next digit of the result. 
Result so far: 19062.857142
If we take 84 away from 120, we end up 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.

Moving on to step 13:
42 can be fit into 360 8 times, resulting in a remainder of 24.
The next digit of our result is 8. 
Result so far: 19062.8571428
If we subtract 336 from 360, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 14:
42 goes into 240 5 times with a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 19062.85714285
The remainder is 30 after subtracting 210 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Our division results in 19062.85714285 with a remaining 3e-08.