We look at the division of 397148 by 18 
We're looking to find how many times 18 goes into 397148.

On to step 1:
3 divided by 18 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 18

On to step 2:
18 goes into 39 2 times with a remainder of 3.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 36 away from 39, we end up with 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 18

On to step 3:
When dividing 37 by 18, we get 2 with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 22.0
Subtracting 36 from 37 leaves us with 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 18

Advancing to step 4:
The number 18 fits into 11 0 times, leaving a remainder of 11.
The next digit of our result is 0. 
Result so far: 220.0
The remainder is 11 after subtracting 0 from 11.
Take the next digit (4) from the dividend and append it to 11, then repeat: 114 / 18

Moving on to step 5:
18 goes into 114 6 times with a remainder of 6.
Put 6 as the next digit of the answer. 
Result so far: 2206.0
If we take 108 away from 114, we end up with 6.
Grab the next digit (8) from the dividend, add it to 6, then carry on: 68 / 18

Step 6:
When dividing 68 by 18, we get 3 with a remainder of 14.
Write down 3 as next digit of the result. 
Result so far: 22063.0
The remainder is 14 after subtracting 54 from 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 7:
18 can be fit into 140 7 times, resulting in a remainder of 14.
Write down 7 as next digit of the result. 
Result so far: 22063.7
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.

Going ahead to step 8:
If we divide 140 by 18, we get 7 and a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 22063.77
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.

The quotient of the division is 22063.77, and the remainder is 0.014.