Let's divide 520157 by 21
Let's see how many times 21 fits into 520157.

Advancing 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
If we take 0 away from 5, we end up with 5.
Fetch the next digit (2) from the dividend, attach it to 5 and continue: 52 / 21

Moving on to step 2:
The number 21 fits into 52 2 times, leaving a remainder of 10.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 42 from 52, we get 10.
Append the next digit (0) from the dividend to 10 and continue with: 100 / 21

Advancing to step 3:
The number 21 fits into 100 4 times, leaving a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 24.0
Subtracting 84 from 100 leaves us with 16.
Bring next digit (1) of the dividend behind the 16 and repeat the process: 161 / 21

Let's proceed to step 4:
The number 21 fits into 161 7 times, leaving a remainder of 14.
Write down 7 as next digit of the result. 
Result so far: 247.0
If we take 147 away from 161, we end up with 14.
Fetch the next digit (5) from the dividend, attach it to 14 and continue: 145 / 21

Advancing to step 5:
21 can be fit into 145 6 times, resulting in a remainder of 19.
The number 6 becomes the next digit in our result. 
Result so far: 2476.0
Subtracting 126 from 145 leaves us with 19.
Include the next digit (7) from the dividend after 19, then repeat: 197 / 21

Let's proceed to step 6:
The number 21 fits into 197 9 times, leaving a remainder of 8.
The number 9 becomes the next digit in our result. 
Result so far: 24769.0
Subtract 189 from 197 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 7:
If we divide 80 by 21, we get 3 and a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 24769.3
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.

Moving on to step 8:
The number 21 fits into 170 8 times, leaving a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 24769.38
Deduct 168 from 170 and we're left 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 9:
When dividing 20 by 21, we get 0 with a remainder of 20.
The next digit of our result is 0. 
Result so far: 24769.38
Subtract 0 from 20 to get 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 10:
The number 21 fits into 200 9 times, leaving a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 24769.3809
If we subtract 189 from 200, we 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 11:
21 goes into 110 5 times with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 24769.38095
If we take 105 away from 110, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 12:
When dividing 50 by 21, we get 2 with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 24769.380952
Deduct 42 from 50 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.

Going ahead to step 13:
The number 21 fits into 80 3 times, leaving a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 24769.3809523
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.

Let's proceed to step 14:
21 can be fit into 170 8 times, resulting in a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 24769.38095238
The remainder is 2 after subtracting 168 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

In conclusion, the division gives 24769.38095238 with a balance of 2e-09.