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

Let's proceed to step 1:
4 divided by 18 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 18

Moving on to step 2:
18 can be fit into 40 2 times, resulting in a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 36 away from 40, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 18

Advancing to step 3:
40 divided by 18 is 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 22.0
Subtract 36 from 40 to get 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 18

Moving on to step 4:
If we divide 41 by 18, we get 2 and a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 222.0
If we subtract 36 from 41, we get 5.
Bring next digit (5) of the dividend behind the 5 and repeat the process: 55 / 18

Advancing to step 5:
The number 18 fits into 55 3 times, leaving a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 2223.0
If we subtract 54 from 55, we get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 18

Advancing to step 6:
When dividing 19 by 18, we get 1 with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 22231.0
Subtract 18 from 19 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.

Step 7:
When dividing 10 by 18, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 22231.0
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
18 can be fit into 100 5 times, resulting in a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 22231.05
Subtract 90 from 100 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 9:
18 goes into 100 5 times with a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 22231.055
Subtract 90 from 100 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

In conclusion, the division gives 22231.055 with a balance of 0.001.