585178 ÷ 21 
We want to divide 585178 by 21.

On to step 1:
5 divided by 21 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
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

Advancing to step 2:
The number 21 fits into 58 2 times, leaving a remainder of 16.
The next digit of our result is 2. 
Result so far: 2.0
If we take 42 away from 58, we end up with 16.
Fetch the next digit (5) from the dividend, attach it to 16 and continue: 165 / 21

On to step 3:
The number 21 fits into 165 7 times, leaving a remainder of 18.
Use 7 as the next digit of our solution. 
Result so far: 27.0
Subtracting 147 from 165 leaves us with 18.
Fetch the next digit (1) from the dividend, attach it to 18 and continue: 181 / 21

Let's proceed to step 4:
21 can be fit into 181 8 times, resulting in a remainder of 13.
Put 8 as the next digit of the answer. 
Result so far: 278.0
If we subtract 168 from 181, we get 13.
Append the next digit (7) from the dividend to 13 and continue with: 137 / 21

On to step 5:
If we divide 137 by 21, we get 6 and a remainder of 11.
Use 6 as the next digit of our solution. 
Result so far: 2786.0
Subtract 126 from 137 to get 11.
Fetch the next digit (8) from the dividend, attach it to 11 and continue: 118 / 21

Moving on to step 6:
118 divided by 21 is 5 with a remainder of 13.
Put 5 as the next digit of the answer. 
Result so far: 27865.0
Subtracting 105 from 118 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Let's proceed to step 7:
130 divided by 21 is 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 27865.6
If we subtract 126 from 130, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 8:
When dividing 40 by 21, we get 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 27865.61
The remainder is 19 after subtracting 21 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 9:
190 divided by 21 is 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 27865.619
Deduct 189 from 190 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 10:
10 divided by 21 is 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 27865.619
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 11:
When dividing 100 by 21, we get 4 with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 27865.61904
Subtracting 84 from 100 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 12:
If we divide 160 by 21, we get 7 and a remainder of 13.
The next digit of our result is 7. 
Result so far: 27865.619047
If we take 147 away from 160, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

On to step 13:
21 goes into 130 6 times with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 27865.6190476
Deduct 126 from 130 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 14:
When dividing 40 by 21, we get 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 27865.61904761
Subtract 21 from 40 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.

The final result is 27865.61904761 with a remainder of 1.9e-08.