We're dividing 18197 by 40 
We want to figure out the number of times 18197 can be divided by 40.

Advancing to step 1:
40 can be fit into 1 0 times, resulting in a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 40

Going ahead to step 2:
When dividing 18 by 40, we get 0 with a remainder of 18.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 18 and we're left with 18.
Fetch the next digit (1) from the dividend, attach it to 18 and continue: 181 / 40

Let's proceed to step 3:
181 divided by 40 is 4 with a remainder of 21.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
The remainder is 21 after subtracting 160 from 181.
Include the next digit (9) from the dividend after 21, then repeat: 219 / 40

Advancing to step 4:
219 divided by 40 is 5 with a remainder of 19.
Write down 5 as next digit of the result. 
Result so far: 45.0
Subtracting 200 from 219 leaves us with 19.
Take the next digit (7) from the dividend and append it to 19, then repeat: 197 / 40

Going ahead to step 5:
If we divide 197 by 40, we get 4 and a remainder of 37.
Use 4 as the next digit of our solution. 
Result so far: 454.0
Deduct 160 from 197 and we're left with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Let's proceed to step 6:
40 goes into 370 9 times with a remainder of 10.
Use 9 as the next digit of our solution. 
Result so far: 454.9
Subtract 360 from 370 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.

Advancing to step 7:
100 divided by 40 is 2 with a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 454.92
Deduct 80 from 100 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 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 454.925
Deduct 200 from 200 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 454.925
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 454.925
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 454.925 with a remaining 0.0.