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

Moving on to 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
If we subtract 0 from 8, we get 8.
Fetch the next digit (3) from the dividend, attach it to 8 and continue: 83 / 42

On to step 2:
The number 42 fits into 83 1 times, leaving a remainder of 41.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 42 from 83 leaves us with 41.
Include the next digit (4) from the dividend after 41, then repeat: 414 / 42

Advancing to step 3:
414 divided by 42 is 9 with a remainder of 36.
Write down 9 as next digit of the result. 
Result so far: 19.0
If we take 378 away from 414, we end up with 36.
Include the next digit (2) from the dividend after 36, then repeat: 362 / 42

Going ahead to step 4:
The number 42 fits into 362 8 times, leaving a remainder of 26.
The next digit of our result is 8. 
Result so far: 198.0
The remainder is 26 after subtracting 336 from 362.
Take the next digit (5) from the dividend and append it to 26, then repeat: 265 / 42

On to step 5:
42 can be fit into 265 6 times, resulting in a remainder of 13.
Put 6 as the next digit of the answer. 
Result so far: 1986.0
If we subtract 252 from 265, we get 13.
Include the next digit (1) from the dividend after 13, then repeat: 131 / 42

Step 6:
If we divide 131 by 42, we get 3 and a remainder of 5.
The next digit of our result is 3. 
Result so far: 19863.0
Subtract 126 from 131 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 7:
If we divide 50 by 42, we get 1 and a remainder of 8.
Write down 1 as next digit of the result. 
Result so far: 19863.1
Subtract 42 from 50 to 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.

Moving on to step 8:
80 divided by 42 is 1 with a remainder of 38.
The number 1 becomes the next digit in our result. 
Result so far: 19863.11
Subtract 42 from 80 to get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Our division results in 19863.11 with a remaining 0.038.