495165 ÷ 18 
We're looking to find how many times 18 goes into 495165.

Step 1:
4 divided by 18 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (9) from the dividend, add it to 4, then carry on: 49 / 18

Going ahead to step 2:
If we divide 49 by 18, we get 2 and a remainder of 13.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 36 from 49 leaves us with 13.
Append the next digit (5) from the dividend to 13 and continue with: 135 / 18

Let's proceed to step 3:
18 goes into 135 7 times with a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 27.0
The remainder is 9 after subtracting 126 from 135.
Grab the next digit (1) from the dividend, add it to 9, then carry on: 91 / 18

Going ahead to step 4:
18 can be fit into 91 5 times, resulting in a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 275.0
Subtracting 90 from 91 leaves us with 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 18

Advancing to step 5:
The number 18 fits into 16 0 times, leaving a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 2750.0
If we subtract 0 from 16, we get 16.
Take the next digit (5) from the dividend and append it to 16, then repeat: 165 / 18

On to step 6:
18 can be fit into 165 9 times, resulting in a remainder of 3.
Use 9 as the next digit of our solution. 
Result so far: 27509.0
Subtracting 162 from 165 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
The number 18 fits into 30 1 times, leaving a remainder of 12.
Record the quotient 1 as the next digit in the result. 
Result so far: 27509.1
Subtracting 18 from 30 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 8:
18 can be fit into 120 6 times, resulting in a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 27509.16
Subtracting 108 from 120 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 9:
The number 18 fits into 120 6 times, leaving a remainder of 12.
Record the quotient 6 as the next digit in the result. 
Result so far: 27509.166
If we take 108 away from 120, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

After the division, we end up with 27509.166 and a remainder of 0.0012.