Let's divide 502089 by 9
Let's see how many times 9 fits into 502089.

Moving on to step 1:
9 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 9

On to step 2:
9 can be fit into 50 5 times, resulting in a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Deduct 45 from 50 and we're left with 5.
Append the next digit (2) from the dividend to 5 and continue with: 52 / 9

Advancing to step 3:
If we divide 52 by 9, we get 5 and a remainder of 7.
Use 5 as the next digit of our solution. 
Result so far: 55.0
Deduct 45 from 52 and we're left with 7.
Bring next digit (0) of the dividend behind the 7 and repeat the process: 70 / 9

Let's proceed to step 4:
If we divide 70 by 9, we get 7 and a remainder of 7.
Write down 7 as next digit of the result. 
Result so far: 557.0
If we take 63 away from 70, we end up with 7.
Append the next digit (8) from the dividend to 7 and continue with: 78 / 9

Advancing to step 5:
78 divided by 9 is 8 with a remainder of 6.
Put 8 as the next digit of the answer. 
Result so far: 5578.0
If we take 72 away from 78, we end up with 6.
Include the next digit (9) from the dividend after 6, then repeat: 69 / 9

Advancing to step 6:
9 can be fit into 69 7 times, resulting in a remainder of 6.
The next digit of our result is 7. 
Result so far: 55787.0
Deduct 63 from 69 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
9 goes into 60 6 times with a remainder of 6.
Put 6 as the next digit of the answer. 
Result so far: 55787.6
The remainder is 6 after subtracting 54 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 8:
9 goes into 60 6 times with a remainder of 6.
Record the quotient 6 as the next digit in the result. 
Result so far: 55787.66
Subtract 54 from 60 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

After the division, we end up with 55787.66 and a remainder of 0.006.