We're dividing 407016 by 42 
The aim is to understand the frequency of 42 in 407016.

Let's proceed to step 1:
When dividing 4 by 42, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 42

Step 2:
When dividing 40 by 42, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Append the next digit (7) from the dividend to 40 and continue with: 407 / 42

Going ahead to step 3:
407 divided by 42 is 9 with a remainder of 29.
Use 9 as the next digit of our solution. 
Result so far: 9.0
If we take 378 away from 407, we end up with 29.
Take the next digit (0) from the dividend and append it to 29, then repeat: 290 / 42

On to step 4:
290 divided by 42 is 6 with a remainder of 38.
The next digit of our result is 6. 
Result so far: 96.0
Subtract 252 from 290 to get 38.
Bring next digit (1) of the dividend behind the 38 and repeat the process: 381 / 42

Let's proceed to step 5:
The number 42 fits into 381 9 times, leaving a remainder of 3.
Write down 9 as next digit of the result. 
Result so far: 969.0
If we subtract 378 from 381, we get 3.
Bring next digit (6) of the dividend behind the 3 and repeat the process: 36 / 42

Going ahead to step 6:
The number 42 fits into 36 0 times, leaving a remainder of 36.
The number 0 becomes the next digit in our result. 
Result so far: 9690.0
If we take 0 away from 36, 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.

On to step 7:
42 goes into 360 8 times with a remainder of 24.
Record the quotient 8 as the next digit in the result. 
Result so far: 9690.8
The remainder is 24 after subtracting 336 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 8:
42 goes into 240 5 times with a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 9690.85
Subtracting 210 from 240 leaves us 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.

Going ahead to step 9:
300 divided by 42 is 7 with a remainder of 6.
Put 7 as the next digit of the answer. 
Result so far: 9690.857
Subtracting 294 from 300 leaves us 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.

Going ahead to step 10:
42 goes into 60 1 times with a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 9690.8571
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.

On to step 11:
42 can be fit into 180 4 times, resulting in a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 9690.85714
If we take 168 away from 180, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 12:
If we divide 120 by 42, we get 2 and a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 9690.857142
If we subtract 84 from 120, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 13:
The number 42 fits into 360 8 times, leaving a remainder of 24.
Use 8 as the next digit of our solution. 
Result so far: 9690.8571428
Subtract 336 from 360 to 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 14:
42 goes into 240 5 times with a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 9690.85714285
If we subtract 210 from 240, we 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.

In conclusion, the division gives 9690.85714285 with a balance of 3e-08.