We look at the division of 20523870 by 42 
The aim is to understand the frequency of 42 in 20523870.

On to step 1:
42 goes into 2 0 times with a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Grab the next digit (0) from the dividend, add it to 2, then carry on: 20 / 42

Step 2:
42 goes into 20 0 times with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 20 to get 20.
Append the next digit (5) from the dividend to 20 and continue with: 205 / 42

Advancing to step 3:
When dividing 205 by 42, we get 4 with a remainder of 37.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we subtract 168 from 205, we get 37.
Append the next digit (2) from the dividend to 37 and continue with: 372 / 42

Advancing to step 4:
372 divided by 42 is 8 with a remainder of 36.
Use 8 as the next digit of our solution. 
Result so far: 48.0
The remainder is 36 after subtracting 336 from 372.
Append the next digit (3) from the dividend to 36 and continue with: 363 / 42

Let's proceed to step 5:
When dividing 363 by 42, we get 8 with a remainder of 27.
Record the quotient 8 as the next digit in the result. 
Result so far: 488.0
If we take 336 away from 363, we end up with 27.
Fetch the next digit (8) from the dividend, attach it to 27 and continue: 278 / 42

Moving on to step 6:
The number 42 fits into 278 6 times, leaving a remainder of 26.
Record the quotient 6 as the next digit in the result. 
Result so far: 4886.0
If we take 252 away from 278, we end up with 26.
Take the next digit (7) from the dividend and append it to 26, then repeat: 267 / 42

Moving on to step 7:
42 goes into 267 6 times with a remainder of 15.
The next digit of our result is 6. 
Result so far: 48866.0
Subtracting 252 from 267 leaves us with 15.
Include the next digit (0) from the dividend after 15, then repeat: 150 / 42

Going ahead to step 8:
If we divide 150 by 42, we get 3 and a remainder of 24.
Put 3 as the next digit of the answer. 
Result so far: 488663.0
The remainder is 24 after subtracting 126 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 9:
42 goes into 240 5 times with a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 488663.5
Subtract 210 from 240 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 10:
42 goes into 300 7 times with a remainder of 6.
The next digit of our result is 7. 
Result so far: 488663.57
If we take 294 away from 300, we end up 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.

Step 11:
When dividing 60 by 42, we get 1 with a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 488663.571
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.

Advancing to step 12:
42 can be fit into 180 4 times, resulting in a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 488663.5714
The remainder is 12 after subtracting 168 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 13:
120 divided by 42 is 2 with a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 488663.57142
If we take 84 away from 120, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 14:
If we divide 360 by 42, we get 8 and a remainder of 24.
Use 8 as the next digit of our solution. 
Result so far: 488663.571428
Deduct 336 from 360 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 15:
When dividing 240 by 42, we get 5 with a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 488663.5714285
Subtract 210 from 240 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 16:
When dividing 300 by 42, we get 7 with a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 488663.57142857
Subtract 294 from 300 to get 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 quotient of the division is 488663.57142857, and the remainder is 6e-09.