Let's divide 585278 by 21
Our goal is to divide 585278 by 21.

Advancing to step 1:
If we divide 5 by 21, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 21

Moving on to step 2:
21 can be fit into 58 2 times, resulting in a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 42 from 58 leaves us with 16.
Append the next digit (5) from the dividend to 16 and continue with: 165 / 21

On to step 3:
165 divided by 21 is 7 with a remainder of 18.
Record the quotient 7 as the next digit in the result. 
Result so far: 27.0
If we take 147 away from 165, we end up with 18.
Fetch the next digit (2) from the dividend, attach it to 18 and continue: 182 / 21

Step 4:
When dividing 182 by 21, we get 8 with a remainder of 14.
The number 8 becomes the next digit in our result. 
Result so far: 278.0
Deduct 168 from 182 and we're left with 14.
Bring next digit (7) of the dividend behind the 14 and repeat the process: 147 / 21

Going ahead to step 5:
21 can be fit into 147 7 times, resulting in a remainder of 0.
Write down 7 as next digit of the result. 
Result so far: 2787.0
The remainder is 0 after subtracting 147 from 147.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 21

On to step 6:
8 divided by 21 is 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 27870.0
Deduct 0 from 8 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 7:
80 divided by 21 is 3 with a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 27870.3
Subtracting 63 from 80 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 8:
The number 21 fits into 170 8 times, leaving a remainder of 2.
The next digit of our result is 8. 
Result so far: 27870.38
Subtracting 168 from 170 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.

Step 9:
When dividing 20 by 21, we get 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 27870.38
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 10:
200 divided by 21 is 9 with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 27870.3809
Subtracting 189 from 200 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 11:
When dividing 110 by 21, we get 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 27870.38095
If we subtract 105 from 110, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 12:
21 can be fit into 50 2 times, resulting in a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 27870.380952
Subtracting 42 from 50 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 13:
21 goes into 80 3 times with a remainder of 17.
Use 3 as the next digit of our solution. 
Result so far: 27870.3809523
If we take 63 away from 80, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 14:
21 can be fit into 170 8 times, resulting in a remainder of 2.
The next digit of our result is 8. 
Result so far: 27870.38095238
If we subtract 168 from 170, 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.

The quotient of the division is 27870.38095238, and the remainder is 2e-09.