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

Going ahead to step 1:
42 goes into 9 0 times with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Bring next digit (8) of the dividend behind the 9 and repeat the process: 98 / 42

On to step 2:
When dividing 98 by 42, we get 2 with a remainder of 14.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 84 from 98 and we're left with 14.
Append the next digit (2) from the dividend to 14 and continue with: 142 / 42

Going ahead to step 3:
42 goes into 142 3 times with a remainder of 16.
Use 3 as the next digit of our solution. 
Result so far: 23.0
The remainder is 16 after subtracting 126 from 142.
Append the next digit (7) from the dividend to 16 and continue with: 167 / 42

Moving on to step 4:
The number 42 fits into 167 3 times, leaving a remainder of 41.
Use 3 as the next digit of our solution. 
Result so far: 233.0
Subtracting 126 from 167 leaves us with 41.
Include the next digit (4) from the dividend after 41, then repeat: 414 / 42

Moving on to step 5:
42 goes into 414 9 times with a remainder of 36.
Record the quotient 9 as the next digit in the result. 
Result so far: 2339.0
Subtract 378 from 414 to get 36.
Include the next digit (2) from the dividend after 36, then repeat: 362 / 42

On to step 6:
When dividing 362 by 42, we get 8 with a remainder of 26.
The number 8 becomes the next digit in our result. 
Result so far: 23398.0
Subtract 336 from 362 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 7:
If we divide 260 by 42, we get 6 and a remainder of 8.
The next digit of our result is 6. 
Result so far: 23398.6
If we take 252 away from 260, we end up 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 8:
When dividing 80 by 42, we get 1 with a remainder of 38.
Write down 1 as next digit of the result. 
Result so far: 23398.61
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.

Going ahead to step 9:
380 divided by 42 is 9 with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 23398.619
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.

Going ahead to step 10:
42 can be fit into 20 0 times, resulting in a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 23398.619
Subtracting 0 from 20 leaves us 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 11:
If we divide 200 by 42, we get 4 and a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 23398.61904
Subtract 168 from 200 to 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 12:
320 divided by 42 is 7 with a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 23398.619047
Deduct 294 from 320 and we're left 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.

Moving on to step 13:
The number 42 fits into 260 6 times, leaving a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 23398.6190476
Subtracting 252 from 260 leaves us 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 14:
If we divide 80 by 42, we get 1 and a remainder of 38.
Put 1 as the next digit of the answer. 
Result so far: 23398.61904761
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.

The final result is 23398.61904761 with a remainder of 3.8e-08.