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

Advancing to step 1:
When dividing 5 by 42, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 42

Advancing to step 2:
When dividing 50 by 42, we get 1 with a remainder of 8.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 42 from 50 to get 8.
Grab the next digit (0) from the dividend, add it to 8, then carry on: 80 / 42

Step 3:
42 goes into 80 1 times with a remainder of 38.
Use 1 as the next digit of our solution. 
Result so far: 11.0
Subtracting 42 from 80 leaves us with 38.
Include the next digit (0) from the dividend after 38, then repeat: 380 / 42

Advancing to step 4:
The number 42 fits into 380 9 times, leaving a remainder of 2.
The next digit of our result is 9. 
Result so far: 119.0
Subtract 378 from 380 to get 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 42

Step 5:
The number 42 fits into 28 0 times, leaving a remainder of 28.
Put 0 as the next digit of the answer. 
Result so far: 1190.0
Subtracting 0 from 28 leaves us with 28.
Grab the next digit (1) from the dividend, add it to 28, then carry on: 281 / 42

Let's proceed to step 6:
When dividing 281 by 42, we get 6 with a remainder of 29.
The next digit of our result is 6. 
Result so far: 11906.0
Subtract 252 from 281 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 7:
The number 42 fits into 290 6 times, leaving a remainder of 38.
The number 6 becomes the next digit in our result. 
Result so far: 11906.6
If we take 252 away from 290, 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.

Going ahead to step 8:
380 divided by 42 is 9 with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 11906.69
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.

Going ahead to step 9:
When dividing 20 by 42, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 11906.69
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.

Going ahead to step 10:
42 can be fit into 200 4 times, resulting in a remainder of 32.
Record the quotient 4 as the next digit in the result. 
Result so far: 11906.6904
Deduct 168 from 200 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 11:
42 can be fit into 320 7 times, resulting in a remainder of 26.
Put 7 as the next digit of the answer. 
Result so far: 11906.69047
Subtracting 294 from 320 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing 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: 11906.690476
Deduct 252 from 260 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.

Advancing to step 13:
42 goes into 80 1 times with a remainder of 38.
Write down 1 as next digit of the result. 
Result so far: 11906.6904761
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.

Going ahead to step 14:
When dividing 380 by 42, we get 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 11906.69047619
Subtract 378 from 380 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 11906.69047619, and the remainder is 2e-09.