508875 divided by 42 
The aim is to understand the frequency of 42 in 508875.

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 (0) from the dividend to 5 and continue with: 50 / 42

Let's proceed to step 2:
The number 42 fits into 50 1 times, leaving a remainder of 8.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 42 from 50 leaves us with 8.
Include the next digit (8) from the dividend after 8, then repeat: 88 / 42

Let's proceed to step 3:
88 divided by 42 is 2 with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 84 from 88, we get 4.
Bring next digit (8) of the dividend behind the 4 and repeat the process: 48 / 42

Moving on to step 4:
42 goes into 48 1 times with a remainder of 6.
The next digit of our result is 1. 
Result so far: 121.0
If we subtract 42 from 48, we get 6.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 42

Going ahead to step 5:
67 divided by 42 is 1 with a remainder of 25.
Put 1 as the next digit of the answer. 
Result so far: 1211.0
The remainder is 25 after subtracting 42 from 67.
Fetch the next digit (5) from the dividend, attach it to 25 and continue: 255 / 42

On to step 6:
42 can be fit into 255 6 times, resulting in a remainder of 3.
Write down 6 as next digit of the result. 
Result so far: 12116.0
Subtracting 252 from 255 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
If we divide 30 by 42, we get 0 and a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 12116.0
Subtract 0 from 30 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.

Moving on to step 8:
300 divided by 42 is 7 with a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 12116.07
The remainder is 6 after subtracting 294 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 9:
60 divided by 42 is 1 with a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 12116.071
Subtracting 42 from 60 leaves us with 18.
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 10:
The number 42 fits into 180 4 times, leaving a remainder of 12.
The next digit of our result is 4. 
Result so far: 12116.0714
If we subtract 168 from 180, we get 12.
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 11:
When dividing 120 by 42, we get 2 with a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 12116.07142
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.

Moving on to step 12:
The number 42 fits into 360 8 times, leaving a remainder of 24.
Record the quotient 8 as the next digit in the result. 
Result so far: 12116.071428
If we subtract 336 from 360, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 13:
240 divided by 42 is 5 with a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 12116.0714285
Deduct 210 from 240 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

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

The final outcome is 12116.07142857, with a leftover of 6e-09.