We look at the division of 21582 by 4 
Let's see how many times 4 fits into 21582.

Moving on to step 1:
2 divided by 4 is 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 4

Step 2:
When dividing 21 by 4, we get 5 with a remainder of 1.
The next digit of our result is 5. 
Result so far: 5.0
Subtract 20 from 21 to get 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 4

Let's proceed to step 3:
When dividing 15 by 4, we get 3 with a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 53.0
If we take 12 away from 15, we end up with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 4

Advancing to step 4:
The number 4 fits into 38 9 times, leaving a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 539.0
The remainder is 2 after subtracting 36 from 38.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 4

Advancing to step 5:
The number 4 fits into 22 5 times, leaving a remainder of 2.
The next digit of our result is 5. 
Result so far: 5395.0
If we take 20 away from 22, we end up 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 6:
If we divide 20 by 4, we get 5 and a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 5395.5
If we subtract 20 from 20, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 7:
The number 4 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 5395.5
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
4 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 5395.5
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 5395.5 with a remaining 0.0.