We divide 298897 by 42
The aim is to understand the frequency of 42 in 298897.

Advancing to step 1:
42 goes into 2 0 times with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 42

Advancing to step 2:
If we divide 29 by 42, we get 0 and a remainder of 29.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 29, we get 29.
Take the next digit (8) from the dividend and append it to 29, then repeat: 298 / 42

Advancing to step 3:
298 divided by 42 is 7 with a remainder of 4.
The next digit of our result is 7. 
Result so far: 7.0
If we subtract 294 from 298, we get 4.
Bring next digit (8) of the dividend behind the 4 and repeat the process: 48 / 42

Step 4:
If we divide 48 by 42, we get 1 and a remainder of 6.
Put 1 as the next digit of the answer. 
Result so far: 71.0
Subtract 42 from 48 to get 6.
Append the next digit (9) from the dividend to 6 and continue with: 69 / 42

Moving on to step 5:
The number 42 fits into 69 1 times, leaving a remainder of 27.
Write down 1 as next digit of the result. 
Result so far: 711.0
If we take 42 away from 69, we end up with 27.
Grab the next digit (7) from the dividend, add it to 27, then carry on: 277 / 42

On to step 6:
277 divided by 42 is 6 with a remainder of 25.
Record the quotient 6 as the next digit in the result. 
Result so far: 7116.0
Deduct 252 from 277 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 7:
42 can be fit into 250 5 times, resulting in a remainder of 40.
Write down 5 as next digit of the result. 
Result so far: 7116.5
Subtract 210 from 250 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 8:
If we divide 400 by 42, we get 9 and a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 7116.59
Subtract 378 from 400 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 9:
42 goes into 220 5 times with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 7116.595
Subtract 210 from 220 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 10:
42 goes into 100 2 times with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 7116.5952
Subtracting 84 from 100 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 11:
160 divided by 42 is 3 with a remainder of 34.
Put 3 as the next digit of the answer. 
Result so far: 7116.59523
Subtracting 126 from 160 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Going ahead to step 12:
The number 42 fits into 340 8 times, leaving a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 7116.595238
The remainder is 4 after subtracting 336 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 13:
42 can be fit into 40 0 times, resulting in a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 7116.595238
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 14:
When dividing 400 by 42, we get 9 with a remainder of 22.
The number 9 becomes the next digit in our result. 
Result so far: 7116.59523809
Deduct 378 from 400 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

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