We're dividing 401060 by 7 
The aim is to understand the frequency of 7 in 401060.

Going ahead to step 1:
7 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 7

Step 2:
If we divide 40 by 7, we get 5 and a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 5.0
The remainder is 5 after subtracting 35 from 40.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 7

Let's proceed to step 3:
When dividing 51 by 7, we get 7 with a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 57.0
If we subtract 49 from 51, we get 2.
Take the next digit (0) from the dividend and append it to 2, then repeat: 20 / 7

Advancing to step 4:
20 divided by 7 is 2 with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 572.0
If we take 14 away from 20, we end up with 6.
Fetch the next digit (6) from the dividend, attach it to 6 and continue: 66 / 7

On to step 5:
66 divided by 7 is 9 with a remainder of 3.
Write down 9 as next digit of the result. 
Result so far: 5729.0
If we subtract 63 from 66, we get 3.
Append the next digit (0) from the dividend to 3 and continue with: 30 / 7

Moving on to step 6:
30 divided by 7 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 57294.0
Deduct 28 from 30 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.

Advancing to step 7:
20 divided by 7 is 2 with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 57294.2
Subtract 14 from 20 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 8:
7 goes into 60 8 times with a remainder of 4.
The next digit of our result is 8. 
Result so far: 57294.28
The remainder is 4 after subtracting 56 from 60.
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 9:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 57294.285
Subtract 35 from 40 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 10:
50 divided by 7 is 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 57294.2857
Subtract 49 from 50 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 11:
7 goes into 10 1 times with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 57294.28571
If we take 7 away from 10, we end up 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.

Let's proceed to step 12:
If we divide 30 by 7, we get 4 and a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 57294.285714
If we take 28 away from 30, we end up 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.

Moving on to step 13:
7 can be fit into 20 2 times, resulting in a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 57294.2857142
If we subtract 14 from 20, we get 6.
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 14:
60 divided by 7 is 8 with a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 57294.28571428
If we subtract 56 from 60, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 57294.28571428 with a remainder of 4e-09.