Let's divide 841217 by 42
The aim is to understand the frequency of 42 in 841217.

Step 1:
42 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Append the next digit (4) from the dividend to 8 and continue with: 84 / 42

Advancing to step 2:
When dividing 84 by 42, we get 2 with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 0 after subtracting 84 from 84.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 42

Going ahead to step 3:
The number 42 fits into 1 0 times, leaving a remainder of 1.
The next digit of our result is 0. 
Result so far: 20.0
Subtract 0 from 1 to get 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 42

Going ahead to step 4:
12 divided by 42 is 0 with a remainder of 12.
Put 0 as the next digit of the answer. 
Result so far: 200.0
The remainder is 12 after subtracting 0 from 12.
Append the next digit (1) from the dividend to 12 and continue with: 121 / 42

Advancing to step 5:
When dividing 121 by 42, we get 2 with a remainder of 37.
Put 2 as the next digit of the answer. 
Result so far: 2002.0
Deduct 84 from 121 and we're left with 37.
Bring next digit (7) of the dividend behind the 37 and repeat the process: 377 / 42

Advancing to step 6:
377 divided by 42 is 8 with a remainder of 41.
Put 8 as the next digit of the answer. 
Result so far: 20028.0
The remainder is 41 after subtracting 336 from 377.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Advancing to step 7:
The number 42 fits into 410 9 times, leaving a remainder of 32.
Put 9 as the next digit of the answer. 
Result so far: 20028.9
If we subtract 378 from 410, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 8:
42 goes into 320 7 times with a remainder of 26.
Write down 7 as next digit of the result. 
Result so far: 20028.97
Subtracting 294 from 320 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 9:
The number 42 fits into 260 6 times, leaving a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 20028.976
Deduct 252 from 260 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.

On to step 10:
42 goes into 80 1 times with a remainder of 38.
The next digit of our result is 1. 
Result so far: 20028.9761
The remainder is 38 after subtracting 42 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 11:
380 divided by 42 is 9 with a remainder of 2.
The next digit of our result is 9. 
Result so far: 20028.97619
Subtracting 378 from 380 leaves us 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 12:
42 goes into 20 0 times with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 20028.97619
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 13:
42 goes into 200 4 times with a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 20028.9761904
If we subtract 168 from 200, we get 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 14:
The number 42 fits into 320 7 times, leaving a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 20028.97619047
Subtracting 294 from 320 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

After the division, we end up with 20028.97619047 and a remainder of 2.6e-08.