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

On to step 1:
The number 42 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (2) from the dividend to 5 and continue with: 52 / 42

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 take 42 away from 52, we end up with 10.
Append the next digit (2) from the dividend to 10 and continue with: 102 / 42

Step 3:
102 divided by 42 is 2 with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Subtract 84 from 102 to get 18.
Fetch the next digit (0) from the dividend, attach it to 18 and continue: 180 / 42

Going ahead to step 4:
The number 42 fits into 180 4 times, leaving a remainder of 12.
The next digit of our result is 4. 
Result so far: 124.0
If we take 168 away from 180, we end up with 12.
Append the next digit (3) from the dividend to 12 and continue with: 123 / 42

On to step 5:
When dividing 123 by 42, we get 2 with a remainder of 39.
Write down 2 as next digit of the result. 
Result so far: 1242.0
Deduct 84 from 123 and we're left with 39.
Include the next digit (4) from the dividend after 39, then repeat: 394 / 42

Let's proceed to step 6:
The number 42 fits into 394 9 times, leaving a remainder of 16.
Write down 9 as next digit of the result. 
Result so far: 12429.0
Subtract 378 from 394 to 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.

Going ahead to step 7:
42 goes into 160 3 times with a remainder of 34.
Put 3 as the next digit of the answer. 
Result so far: 12429.3
The remainder is 34 after subtracting 126 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 8:
42 can be fit into 340 8 times, resulting in a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 12429.38
If we take 336 away from 340, we end up 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 9:
When dividing 40 by 42, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 12429.38
Deduct 0 from 40 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 10:
If we divide 400 by 42, we get 9 and a remainder of 22.
The next digit of our result is 9. 
Result so far: 12429.3809
If we subtract 378 from 400, we 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 11:
42 can be fit into 220 5 times, resulting in a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 12429.38095
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.

Let's proceed to step 12:
When dividing 100 by 42, we get 2 with a remainder of 16.
Record the quotient 2 as the next digit in the result. 
Result so far: 12429.380952
The remainder is 16 after subtracting 84 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 13:
42 goes into 160 3 times with a remainder of 34.
Write down 3 as next digit of the result. 
Result so far: 12429.3809523
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.

Let's proceed to step 14:
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: 12429.38095238
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.

The final result is 12429.38095238 with a remainder of 4e-09.