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

Step 1:
8 divided by 42 is 0 with 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.
Grab the next digit (2) from the dividend, add it to 8, then carry on: 82 / 42

On to step 2:
The number 42 fits into 82 1 times, leaving a remainder of 40.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 42 away from 82, we end up with 40.
Grab the next digit (8) from the dividend, add it to 40, then carry on: 408 / 42

Moving on to step 3:
42 can be fit into 408 9 times, resulting in a remainder of 30.
Record the quotient 9 as the next digit in the result. 
Result so far: 19.0
Subtracting 378 from 408 leaves us with 30.
Include the next digit (2) from the dividend after 30, then repeat: 302 / 42

Advancing to step 4:
When dividing 302 by 42, we get 7 with a remainder of 8.
Write down 7 as next digit of the result. 
Result so far: 197.0
The remainder is 8 after subtracting 294 from 302.
Bring next digit (1) of the dividend behind the 8 and repeat the process: 81 / 42

Advancing to step 5:
81 divided by 42 is 1 with a remainder of 39.
Write down 1 as next digit of the result. 
Result so far: 1971.0
If we subtract 42 from 81, we get 39.
Grab the next digit (6) from the dividend, add it to 39, then carry on: 396 / 42

Step 6:
When dividing 396 by 42, we get 9 with a remainder of 18.
Put 9 as the next digit of the answer. 
Result so far: 19719.0
If we take 378 away from 396, 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.

Going ahead to step 7:
If we divide 180 by 42, we get 4 and a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 19719.4
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.

On to step 8:
120 divided by 42 is 2 with a remainder of 36.
The number 2 becomes the next digit in our result. 
Result so far: 19719.42
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.

Step 9:
If we divide 360 by 42, we get 8 and a remainder of 24.
The next digit of our result is 8. 
Result so far: 19719.428
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 10:
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: 19719.4285
Deduct 210 from 240 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.

Going ahead to step 11:
The number 42 fits into 300 7 times, leaving a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 19719.42857
The remainder is 6 after subtracting 294 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 12:
When dividing 60 by 42, we get 1 with a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 19719.428571
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.

Step 13:
180 divided by 42 is 4 with a remainder of 12.
The next digit of our result is 4. 
Result so far: 19719.4285714
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.

Going ahead to step 14:
120 divided by 42 is 2 with a remainder of 36.
The number 2 becomes the next digit in our result. 
Result so far: 19719.42857142
The remainder is 36 after subtracting 84 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Our division results in 19719.42857142 with a remaining 3.6e-08.