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

Let's proceed to step 1:
5 divided by 42 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (2) from the dividend to 5 and continue with: 52 / 42

Let's proceed to step 2:
42 can be fit into 52 1 times, resulting in a remainder of 10.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 42 from 52 and we're left with 10.
Grab the next digit (4) from the dividend, add it to 10, then carry on: 104 / 42

Moving on to step 3:
42 goes into 104 2 times with a remainder of 20.
The next digit of our result is 2. 
Result so far: 12.0
If we take 84 away from 104, we end up with 20.
Append the next digit (5) from the dividend to 20 and continue with: 205 / 42

Going ahead to step 4:
If we divide 205 by 42, we get 4 and a remainder of 37.
Write down 4 as next digit of the result. 
Result so far: 124.0
If we take 168 away from 205, we end up with 37.
Bring next digit (9) of the dividend behind the 37 and repeat the process: 379 / 42

Let's proceed to step 5:
If we divide 379 by 42, we get 9 and a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 1249.0
Subtracting 378 from 379 leaves us with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 42

Moving on to step 6:
The number 42 fits into 10 0 times, leaving a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 12490.0
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 7:
42 can be fit into 100 2 times, resulting in a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 12490.2
If we take 84 away from 100, we end up 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.

Moving on to step 8:
42 can be fit into 160 3 times, resulting in a remainder of 34.
Write down 3 as next digit of the result. 
Result so far: 12490.23
Deduct 126 from 160 and we're left 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.

Moving on to step 9:
42 can be fit into 340 8 times, resulting in a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 12490.238
Subtract 336 from 340 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 10:
40 divided by 42 is 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 12490.238
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.

Going ahead to step 11:
42 goes into 400 9 times with a remainder of 22.
Write down 9 as next digit of the result. 
Result so far: 12490.23809
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.

Step 12:
42 goes into 220 5 times with a remainder of 10.
The next digit of our result is 5. 
Result so far: 12490.238095
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.

On to step 13:
100 divided by 42 is 2 with a remainder of 16.
The next digit of our result is 2. 
Result so far: 12490.2380952
Subtract 84 from 100 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.

On to step 14:
The number 42 fits into 160 3 times, leaving a remainder of 34.
Write down 3 as next digit of the result. 
Result so far: 12490.23809523
If we take 126 away from 160, we end up 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.

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