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

Step 1:
The number 21 fits into 7 0 times, leaving a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Fetch the next digit (9) from the dividend, attach it to 7 and continue: 79 / 21

Step 2:
79 divided by 21 is 3 with a remainder of 16.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 63 from 79 to get 16.
Take the next digit (6) from the dividend and append it to 16, then repeat: 166 / 21

Let's proceed to step 3:
21 goes into 166 7 times with a remainder of 19.
Put 7 as the next digit of the answer. 
Result so far: 37.0
The remainder is 19 after subtracting 147 from 166.
Take the next digit (7) from the dividend and append it to 19, then repeat: 197 / 21

On to step 4:
21 can be fit into 197 9 times, resulting in a remainder of 8.
The number 9 becomes the next digit in our result. 
Result so far: 379.0
Subtract 189 from 197 to get 8.
Append the next digit (8) from the dividend to 8 and continue with: 88 / 21

Moving on to step 5:
The number 21 fits into 88 4 times, leaving a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 3794.0
If we subtract 84 from 88, we get 4.
Append the next digit (5) from the dividend to 4 and continue with: 45 / 21

Advancing to step 6:
21 goes into 45 2 times with a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 37942.0
If we take 42 away from 45, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 7:
When dividing 30 by 21, we get 1 with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 37942.1
If we take 21 away from 30, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 8:
The number 21 fits into 90 4 times, leaving a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 37942.14
Deduct 84 from 90 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 9:
If we divide 60 by 21, we get 2 and a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 37942.142
Deduct 42 from 60 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 10:
21 can be fit into 180 8 times, resulting in a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 37942.1428
Deduct 168 from 180 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 11:
21 can be fit into 120 5 times, resulting in a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 37942.14285
Subtract 105 from 120 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 12:
21 can be fit into 150 7 times, resulting in a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 37942.142857
The remainder is 3 after subtracting 147 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 13:
21 goes into 30 1 times with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 37942.1428571
The remainder is 9 after subtracting 21 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 14:
21 goes into 90 4 times with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 37942.14285714
Subtracting 84 from 90 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The final outcome is 37942.14285714, with a leftover of 6e-09.