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

Going ahead to step 1:
When dividing 5 by 21, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (7) from the dividend, add it to 5, then carry on: 57 / 21

On to step 2:
When dividing 57 by 21, we get 2 with a remainder of 15.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 15 after subtracting 42 from 57.
Take the next digit (9) from the dividend and append it to 15, then repeat: 159 / 21

Step 3:
21 goes into 159 7 times with a remainder of 12.
Put 7 as the next digit of the answer. 
Result so far: 27.0
The remainder is 12 after subtracting 147 from 159.
Grab the next digit (1) from the dividend, add it to 12, then carry on: 121 / 21

Step 4:
121 divided by 21 is 5 with a remainder of 16.
Record the quotient 5 as the next digit in the result. 
Result so far: 275.0
If we subtract 105 from 121, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 5:
If we divide 160 by 21, we get 7 and a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 275.7
Deduct 147 from 160 and we're left 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.

Moving on to step 6:
130 divided by 21 is 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 275.76
Subtracting 126 from 130 leaves us 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.

On to step 7:
21 can be fit into 40 1 times, resulting in a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 275.761
Subtracting 21 from 40 leaves us with 19.
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 8:
21 can be fit into 190 9 times, resulting in a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 275.7619
If we subtract 189 from 190, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 9:
The number 21 fits into 10 0 times, leaving a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 275.7619
If we subtract 0 from 10, we get 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 10:
100 divided by 21 is 4 with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 275.761904
If we subtract 84 from 100, we get 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 11:
21 goes into 160 7 times with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 275.7619047
Subtracting 147 from 160 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.

Advancing to step 12:
The number 21 fits into 130 6 times, leaving a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 275.76190476
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.

Our division results in 275.76190476 with a remaining 4e-09.