We divide 401035 by 18
The aim is to understand the frequency of 18 in 401035.

Advancing to step 1:
If we divide 4 by 18, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
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 / 18

On to step 2:
18 goes into 40 2 times with a remainder of 4.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 36 from 40 and we're left with 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 18

Let's proceed to step 3:
18 can be fit into 41 2 times, resulting in a remainder of 5.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
Deduct 36 from 41 and we're left with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 18

Going ahead to step 4:
18 goes into 50 2 times with a remainder of 14.
Use 2 as the next digit of our solution. 
Result so far: 222.0
Deduct 36 from 50 and we're left with 14.
Include the next digit (3) from the dividend after 14, then repeat: 143 / 18

Step 5:
When dividing 143 by 18, we get 7 with a remainder of 17.
The next digit of our result is 7. 
Result so far: 2227.0
Subtracting 126 from 143 leaves us with 17.
Bring next digit (5) of the dividend behind the 17 and repeat the process: 175 / 18

Going ahead to step 6:
175 divided by 18 is 9 with a remainder of 13.
Write down 9 as next digit of the result. 
Result so far: 22279.0
Subtract 162 from 175 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 7:
The number 18 fits into 130 7 times, leaving a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 22279.7
If we take 126 away from 130, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
The number 18 fits into 40 2 times, leaving a remainder of 4.
The next digit of our result is 2. 
Result so far: 22279.72
Subtract 36 from 40 to 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.

Let's proceed to step 9:
The number 18 fits into 40 2 times, leaving a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 22279.722
The remainder is 4 after subtracting 36 from 40.
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 outcome is 22279.722, with a leftover of 0.0004.