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

Let's proceed to step 1:
21 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 21

On to step 2:
54 divided by 21 is 2 with a remainder of 12.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 42 from 54 and we're left with 12.
Append the next digit (0) from the dividend to 12 and continue with: 120 / 21

Going ahead to step 3:
120 divided by 21 is 5 with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 25.0
Deduct 105 from 120 and we're left with 15.
Fetch the next digit (9) from the dividend, attach it to 15 and continue: 159 / 21

Let's proceed to step 4:
21 can be fit into 159 7 times, resulting in a remainder of 12.
Use 7 as the next digit of our solution. 
Result so far: 257.0
Subtracting 147 from 159 leaves us with 12.
Grab the next digit (6) from the dividend, add it to 12, then carry on: 126 / 21

Going ahead to step 5:
If we divide 126 by 21, we get 6 and a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 2576.0
The remainder is 0 after subtracting 126 from 126.
Append the next digit (5) from the dividend to 0 and continue with: 5 / 21

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

On to step 7:
The number 21 fits into 50 2 times, leaving a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 25760.2
The remainder is 8 after subtracting 42 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 8:
When dividing 80 by 21, we get 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 25760.23
If we subtract 63 from 80, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 9:
21 goes into 170 8 times with a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 25760.238
If we take 168 away from 170, 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.

Advancing to step 10:
When dividing 20 by 21, we get 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 25760.238
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.

Step 11:
200 divided by 21 is 9 with a remainder of 11.
The next digit of our result is 9. 
Result so far: 25760.23809
Subtract 189 from 200 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 12:
21 can be fit into 110 5 times, resulting in a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 25760.238095
Subtract 105 from 110 to 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.

Moving on to step 13:
21 can be fit into 50 2 times, resulting in a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 25760.2380952
If we take 42 away from 50, we end up 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.

Going ahead to step 14:
When dividing 80 by 21, we get 3 with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 25760.23809523
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.

The quotient of the division is 25760.23809523, and the remainder is 1.7e-08.