We're dividing 522147 by 42 
The aim is to understand the frequency of 42 in 522147.

On to step 1:
When dividing 5 by 42, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (2) from the dividend, attach it to 5 and continue: 52 / 42

Moving on to step 2:
42 goes into 52 1 times with a remainder of 10.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 42 from 52, we get 10.
Include the next digit (2) from the dividend after 10, then repeat: 102 / 42

Moving on to step 3:
42 goes into 102 2 times with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Deduct 84 from 102 and we're left with 18.
Append the next digit (1) from the dividend to 18 and continue with: 181 / 42

Going ahead to step 4:
When dividing 181 by 42, we get 4 with a remainder of 13.
Put 4 as the next digit of the answer. 
Result so far: 124.0
Subtracting 168 from 181 leaves us with 13.
Grab the next digit (4) from the dividend, add it to 13, then carry on: 134 / 42

Going ahead to step 5:
42 can be fit into 134 3 times, resulting in a remainder of 8.
Use 3 as the next digit of our solution. 
Result so far: 1243.0
If we take 126 away from 134, we end up with 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 42

Step 6:
The number 42 fits into 87 2 times, leaving a remainder of 3.
The next digit of our result is 2. 
Result so far: 12432.0
Subtract 84 from 87 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 7:
When dividing 30 by 42, we get 0 with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 12432.0
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 8:
When dividing 300 by 42, we get 7 with a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 12432.07
Subtracting 294 from 300 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 9:
When dividing 60 by 42, we get 1 with a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 12432.071
The remainder is 18 after subtracting 42 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 10:
42 goes into 180 4 times with a remainder of 12.
The number 4 becomes the next digit in our result. 
Result so far: 12432.0714
If we subtract 168 from 180, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 11:
The number 42 fits into 120 2 times, leaving a remainder of 36.
Record the quotient 2 as the next digit in the result. 
Result so far: 12432.07142
If we subtract 84 from 120, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 12:
42 can be fit into 360 8 times, resulting in a remainder of 24.
Write down 8 as next digit of the result. 
Result so far: 12432.071428
If we subtract 336 from 360, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 13:
42 can be fit into 240 5 times, resulting in a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 12432.0714285
If we take 210 away from 240, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 14:
42 goes into 300 7 times with a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 12432.07142857
Deduct 294 from 300 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The final result is 12432.07142857 with a remainder of 6e-09.