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

Going ahead to step 1:
The number 42 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 42

Advancing to step 2:
The number 42 fits into 50 1 times, leaving a remainder of 8.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 42 from 50 to get 8.
Bring next digit (3) of the dividend behind the 8 and repeat the process: 83 / 42

Let's proceed to step 3:
If we divide 83 by 42, we get 1 and a remainder of 41.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
The remainder is 41 after subtracting 42 from 83.
Append the next digit (0) from the dividend to 41 and continue with: 410 / 42

Advancing to step 4:
When dividing 410 by 42, we get 9 with a remainder of 32.
The next digit of our result is 9. 
Result so far: 119.0
Deduct 378 from 410 and we're left with 32.
Take the next digit (3) from the dividend and append it to 32, then repeat: 323 / 42

Moving on to step 5:
If we divide 323 by 42, we get 7 and a remainder of 29.
Record the quotient 7 as the next digit in the result. 
Result so far: 1197.0
The remainder is 29 after subtracting 294 from 323.
Grab the next digit (5) from the dividend, add it to 29, then carry on: 295 / 42

Advancing to step 6:
When dividing 295 by 42, we get 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 11977.0
The remainder is 1 after subtracting 294 from 295.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 7:
If we divide 10 by 42, we get 0 and a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 11977.0
Subtracting 0 from 10 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 8:
When dividing 100 by 42, we get 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 11977.02
Deduct 84 from 100 and we're left 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.

Advancing to step 9:
160 divided by 42 is 3 with a remainder of 34.
Put 3 as the next digit of the answer. 
Result so far: 11977.023
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.

Step 10:
42 goes into 340 8 times with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 11977.0238
The remainder is 4 after subtracting 336 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 11:
If we divide 40 by 42, we get 0 and a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 11977.0238
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 12:
When dividing 400 by 42, we get 9 with a remainder of 22.
The next digit of our result is 9. 
Result so far: 11977.023809
Subtract 378 from 400 to 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.

Advancing to step 13:
When dividing 220 by 42, we get 5 with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 11977.0238095
If we subtract 210 from 220, we get 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 14:
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: 11977.02380952
Subtracting 84 from 100 leaves us 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.

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