We're dividing 509165 by 22 
We want to divide 509165 by 22.

Step 1:
If we divide 5 by 22, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 22

Advancing to step 2:
50 divided by 22 is 2 with a remainder of 6.
The next digit of our result is 2. 
Result so far: 2.0
If we take 44 away from 50, we end up with 6.
Append the next digit (9) from the dividend to 6 and continue with: 69 / 22

Advancing to step 3:
The number 22 fits into 69 3 times, leaving a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 23.0
Deduct 66 from 69 and we're left with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 22

On to step 4:
22 goes into 31 1 times with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 231.0
The remainder is 9 after subtracting 22 from 31.
Fetch the next digit (6) from the dividend, attach it to 9 and continue: 96 / 22

On to step 5:
The number 22 fits into 96 4 times, leaving a remainder of 8.
Use 4 as the next digit of our solution. 
Result so far: 2314.0
If we take 88 away from 96, we end up with 8.
Fetch the next digit (5) from the dividend, attach it to 8 and continue: 85 / 22

Advancing to step 6:
22 can be fit into 85 3 times, resulting in a remainder of 19.
The next digit of our result is 3. 
Result so far: 23143.0
Subtract 66 from 85 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 7:
22 can be fit into 190 8 times, resulting in a remainder of 14.
Write down 8 as next digit of the result. 
Result so far: 23143.8
The remainder is 14 after subtracting 176 from 190.
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 8:
22 can be fit into 140 6 times, resulting in a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 23143.86
Subtract 132 from 140 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 9:
If we divide 80 by 22, we get 3 and a remainder of 14.
The next digit of our result is 3. 
Result so far: 23143.863
If we take 66 away from 80, we end up 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.

Advancing to step 10:
The number 22 fits into 140 6 times, leaving a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 23143.8636
The remainder is 8 after subtracting 132 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 11:
22 goes into 80 3 times with a remainder of 14.
Record the quotient 3 as the next digit in the result. 
Result so far: 23143.86363
Deduct 66 from 80 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.

Let's proceed to step 12:
22 can be fit into 140 6 times, resulting in a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 23143.863636
The remainder is 8 after subtracting 132 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 13:
If we divide 80 by 22, we get 3 and a remainder of 14.
Put 3 as the next digit of the answer. 
Result so far: 23143.8636363
If we take 66 away from 80, we end up 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.

Advancing to step 14:
When dividing 140 by 22, we get 6 with a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 23143.86363636
The remainder is 8 after subtracting 132 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

After the division, we end up with 23143.86363636 and a remainder of 8e-09.