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

Going ahead to step 1:
2 divided by 42 is 0 with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 42

Advancing to step 2:
If we divide 29 by 42, we get 0 and a remainder of 29.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 29 to get 29.
Append the next digit (7) from the dividend to 29 and continue with: 297 / 42

Moving on to step 3:
42 goes into 297 7 times with a remainder of 3.
The next digit of our result is 7. 
Result so far: 7.0
If we take 294 away from 297, we end up with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 42

Going ahead to step 4:
When dividing 31 by 42, we get 0 with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 70.0
Deduct 0 from 31 and we're left with 31.
Take the next digit (7) from the dividend and append it to 31, then repeat: 317 / 42

Let's proceed to step 5:
317 divided by 42 is 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 707.0
Subtracting 294 from 317 leaves us with 23.
Append the next digit (2) from the dividend to 23 and continue with: 232 / 42

On to step 6:
If we divide 232 by 42, we get 5 and a remainder of 22.
Use 5 as the next digit of our solution. 
Result so far: 7075.0
Subtracting 210 from 232 leaves us 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.

On to step 7:
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: 7075.5
Subtracting 210 from 220 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
The number 42 fits into 100 2 times, leaving a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 7075.52
If we subtract 84 from 100, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 9:
160 divided by 42 is 3 with a remainder of 34.
The number 3 becomes the next digit in our result. 
Result so far: 7075.523
Subtract 126 from 160 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 10:
If we divide 340 by 42, we get 8 and a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 7075.5238
Deduct 336 from 340 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 11:
42 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 7075.5238
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 12:
When dividing 400 by 42, we get 9 with a remainder of 22.
Write down 9 as next digit of the result. 
Result so far: 7075.523809
The remainder is 22 after subtracting 378 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 13:
42 goes into 220 5 times with a remainder of 10.
The next digit of our result is 5. 
Result so far: 7075.5238095
If we take 210 away from 220, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 14:
42 can be fit into 100 2 times, resulting in a remainder of 16.
Record the quotient 2 as the next digit in the result. 
Result so far: 7075.52380952
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.

The final outcome is 7075.52380952, with a leftover of 1.6e-08.