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

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

Going ahead to step 2:
42 goes into 52 1 times with a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 42 from 52 and we're left with 10.
Bring next digit (0) of the dividend behind the 10 and repeat the process: 100 / 42

Going ahead to step 3:
42 goes into 100 2 times with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Subtracting 84 from 100 leaves us with 16.
Take the next digit (7) from the dividend and append it to 16, then repeat: 167 / 42

On to step 4:
If we divide 167 by 42, we get 3 and a remainder of 41.
Write down 3 as next digit of the result. 
Result so far: 123.0
If we subtract 126 from 167, we get 41.
Take the next digit (6) from the dividend and append it to 41, then repeat: 416 / 42

Step 5:
42 can be fit into 416 9 times, resulting in a remainder of 38.
Use 9 as the next digit of our solution. 
Result so far: 1239.0
Subtract 378 from 416 to get 38.
Grab the next digit (6) from the dividend, add it to 38, then carry on: 386 / 42

Going ahead to step 6:
The number 42 fits into 386 9 times, leaving a remainder of 8.
Write down 9 as next digit of the result. 
Result so far: 12399.0
Deduct 378 from 386 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 7:
If we divide 80 by 42, we get 1 and a remainder of 38.
Use 1 as the next digit of our solution. 
Result so far: 12399.1
If we take 42 away from 80, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 8:
42 goes into 380 9 times with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 12399.19
Deduct 378 from 380 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 9:
The number 42 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 12399.19
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 10:
42 goes into 200 4 times with a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 12399.1904
The remainder is 32 after subtracting 168 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 11:
42 can be fit into 320 7 times, resulting in a remainder of 26.
The next digit of our result is 7. 
Result so far: 12399.19047
The remainder is 26 after subtracting 294 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 12:
42 goes into 260 6 times with a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 12399.190476
The remainder is 8 after subtracting 252 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 13:
When dividing 80 by 42, we get 1 with a remainder of 38.
The number 1 becomes the next digit in our result. 
Result so far: 12399.1904761
If we subtract 42 from 80, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 14:
380 divided by 42 is 9 with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 12399.19047619
The remainder is 2 after subtracting 378 from 380.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The final result is 12399.19047619 with a remainder of 2e-09.