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

On to step 1:
42 can be fit into 8 0 times, resulting in 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.
Fetch the next digit (1) from the dividend, attach it to 8 and continue: 81 / 42

Step 2:
81 divided by 42 is 1 with a remainder of 39.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 42 from 81, we get 39.
Take the next digit (6) from the dividend and append it to 39, then repeat: 396 / 42

Advancing to step 3:
42 can be fit into 396 9 times, resulting in a remainder of 18.
Put 9 as the next digit of the answer. 
Result so far: 19.0
If we take 378 away from 396, we end up with 18.
Append the next digit (7) from the dividend to 18 and continue with: 187 / 42

Let's proceed to step 4:
42 goes into 187 4 times with a remainder of 19.
Record the quotient 4 as the next digit in the result. 
Result so far: 194.0
If we subtract 168 from 187, we get 19.
Append the next digit (8) from the dividend to 19 and continue with: 198 / 42

Let's proceed to step 5:
If we divide 198 by 42, we get 4 and a remainder of 30.
Write down 4 as next digit of the result. 
Result so far: 1944.0
If we take 168 away from 198, we end up with 30.
Append the next digit (2) from the dividend to 30 and continue with: 302 / 42

Going ahead to step 6:
If we divide 302 by 42, we get 7 and a remainder of 8.
Put 7 as the next digit of the answer. 
Result so far: 19447.0
Deduct 294 from 302 and we're left 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.

Moving on to step 7:
The number 42 fits into 80 1 times, leaving a remainder of 38.
Record the quotient 1 as the next digit in the result. 
Result so far: 19447.1
Deduct 42 from 80 and we're left 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.

Advancing to step 8:
42 can be fit into 380 9 times, resulting in a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 19447.19
Deduct 378 from 380 and we're left with 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.
The number 0 becomes the next digit in our result. 
Result so far: 19447.19
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 10:
42 goes into 200 4 times with a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 19447.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.

On to step 11:
If we divide 320 by 42, we get 7 and a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 19447.19047
The remainder is 26 after subtracting 294 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 12:
If we divide 260 by 42, we get 6 and a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 19447.190476
If we subtract 252 from 260, we get 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 13:
42 can be fit into 80 1 times, resulting in a remainder of 38.
Use 1 as the next digit of our solution. 
Result so far: 19447.1904761
If we take 42 away from 80, we end up 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.

On to step 14:
When dividing 380 by 42, we get 9 with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 19447.19047619
If we take 378 away from 380, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

In conclusion, the division gives 19447.19047619 with a balance of 2e-09.