We look at the division of 40172 by 18 
We want to divide 40172 by 18.

Moving on to step 1:
If we divide 4 by 18, we get 0 and a remainder of 4.
Write down 0 as next digit of 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 / 18

Advancing to step 2:
The number 18 fits into 40 2 times, leaving a remainder of 4.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 36 from 40, we get 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 18

Let's proceed to step 3:
When dividing 41 by 18, we get 2 with a remainder of 5.
The next digit of our result is 2. 
Result so far: 22.0
The remainder is 5 after subtracting 36 from 41.
Append the next digit (7) from the dividend to 5 and continue with: 57 / 18

Moving on to step 4:
57 divided by 18 is 3 with a remainder of 3.
The next digit of our result is 3. 
Result so far: 223.0
Deduct 54 from 57 and we're left with 3.
Take the next digit (2) from the dividend and append it to 3, then repeat: 32 / 18

Going ahead to step 5:
If we divide 32 by 18, we get 1 and a remainder of 14.
The number 1 becomes the next digit in our result. 
Result so far: 2231.0
Subtracting 18 from 32 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 6:
18 can be fit into 140 7 times, resulting in a remainder of 14.
Put 7 as the next digit of the answer. 
Result so far: 2231.7
The remainder is 14 after subtracting 126 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 7:
When dividing 140 by 18, we get 7 with a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 2231.77
Deduct 126 from 140 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Our division results in 2231.77 with a remaining 0.014.