Let's divide 587945 by 9
We want to figure out the number of times 587945 can be divided by 9.

Moving on to step 1:
If we divide 5 by 9, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 9

Step 2:
If we divide 58 by 9, we get 6 and a remainder of 4.
The next digit of our result is 6. 
Result so far: 6.0
Subtracting 54 from 58 leaves us with 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 9

Step 3:
If we divide 47 by 9, we get 5 and a remainder of 2.
The next digit of our result is 5. 
Result so far: 65.0
Subtracting 45 from 47 leaves us with 2.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 9

Step 4:
The number 9 fits into 29 3 times, leaving a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 653.0
The remainder is 2 after subtracting 27 from 29.
Include the next digit (4) from the dividend after 2, then repeat: 24 / 9

Let's proceed to step 5:
If we divide 24 by 9, we get 2 and a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 6532.0
Subtract 18 from 24 to get 6.
Bring next digit (5) of the dividend behind the 6 and repeat the process: 65 / 9

Advancing to step 6:
9 can be fit into 65 7 times, resulting in a remainder of 2.
The next digit of our result is 7. 
Result so far: 65327.0
If we subtract 63 from 65, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
20 divided by 9 is 2 with a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 65327.2
Subtracting 18 from 20 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 8:
9 goes into 20 2 times with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 65327.22
Subtracting 18 from 20 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 65327.22, and the remainder is 0.002.