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

Moving on to step 1:
The number 42 fits into 4 0 times, leaving a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 42

Step 2:
40 divided by 42 is 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Include the next digit (1) from the dividend after 40, then repeat: 401 / 42

Advancing to step 3:
42 can be fit into 401 9 times, resulting in a remainder of 23.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
Deduct 378 from 401 and we're left with 23.
Take the next digit (0) from the dividend and append it to 23, then repeat: 230 / 42

Moving on to step 4:
42 goes into 230 5 times with a remainder of 20.
Use 5 as the next digit of our solution. 
Result so far: 95.0
Deduct 210 from 230 and we're left with 20.
Bring next digit (7) of the dividend behind the 20 and repeat the process: 207 / 42

Advancing to step 5:
When dividing 207 by 42, we get 4 with a remainder of 39.
The next digit of our result is 4. 
Result so far: 954.0
Subtracting 168 from 207 leaves us with 39.
Bring next digit (8) of the dividend behind the 39 and repeat the process: 398 / 42

Let's proceed to step 6:
42 goes into 398 9 times with a remainder of 20.
The number 9 becomes the next digit in our result. 
Result so far: 9549.0
If we subtract 378 from 398, we 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.

Moving on to step 7:
The number 42 fits into 200 4 times, leaving a remainder of 32.
The next digit of our result is 4. 
Result so far: 9549.4
Subtract 168 from 200 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Let's proceed to step 8:
The number 42 fits into 320 7 times, leaving a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 9549.47
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.

Step 9:
When dividing 260 by 42, we get 6 with a remainder of 8.
The next digit of our result is 6. 
Result so far: 9549.476
Subtract 252 from 260 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 10:
42 can be fit into 80 1 times, resulting in a remainder of 38.
The next digit of our result is 1. 
Result so far: 9549.4761
If we take 42 away from 80, 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.

On to step 11:
380 divided by 42 is 9 with a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 9549.47619
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.

On to step 12:
When dividing 20 by 42, we get 0 with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 9549.47619
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 13:
The number 42 fits into 200 4 times, leaving a remainder of 32.
The next digit of our result is 4. 
Result so far: 9549.4761904
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.

Moving on to step 14:
When dividing 320 by 42, we get 7 with a remainder of 26.
Use 7 as the next digit of our solution. 
Result so far: 9549.47619047
The remainder is 26 after subtracting 294 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Our division results in 9549.47619047 with a remaining 2.6e-08.