Let's divide 5145797 by 821
We want to divide 5145797 by 821.

Advancing to step 1:
821 can be fit into 5 0 times, resulting in a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 821

Advancing to step 2:
821 goes into 51 0 times with a remainder of 51.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 51, we end up with 51.
Bring next digit (4) of the dividend behind the 51 and repeat the process: 514 / 821

Let's proceed to step 3:
If we divide 514 by 821, we get 0 and a remainder of 514.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 514, we get 514.
Bring next digit (5) of the dividend behind the 514 and repeat the process: 5145 / 821

Step 4:
The number 821 fits into 5145 6 times, leaving a remainder of 219.
The next digit of our result is 6. 
Result so far: 6.0
The remainder is 219 after subtracting 4926 from 5145.
Fetch the next digit (7) from the dividend, attach it to 219 and continue: 2197 / 821

Advancing to step 5:
The number 821 fits into 2197 2 times, leaving a remainder of 555.
Write down 2 as next digit of the result. 
Result so far: 62.0
The remainder is 555 after subtracting 1642 from 2197.
Include the next digit (9) from the dividend after 555, then repeat: 5559 / 821

Going ahead to step 6:
When dividing 5559 by 821, we get 6 with a remainder of 633.
The next digit of our result is 6. 
Result so far: 626.0
Subtracting 4926 from 5559 leaves us with 633.
Take the next digit (7) from the dividend and append it to 633, then repeat: 6337 / 821

Moving on to step 7:
The number 821 fits into 6337 7 times, leaving a remainder of 590.
Record the quotient 7 as the next digit in the result. 
Result so far: 6267.0
Deduct 5747 from 6337 and we're left with 590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5900, and continue the process.

Going ahead to step 8:
If we divide 5900 by 821, we get 7 and a remainder of 153.
The next digit of our result is 7. 
Result so far: 6267.7
If we take 5747 away from 5900, we end up with 153.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1530, and continue the process.

Let's proceed to step 9:
1530 divided by 821 is 1 with a remainder of 709.
Write down 1 as next digit of the result. 
Result so far: 6267.71
The remainder is 709 after subtracting 821 from 1530.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7090, and continue the process.

Going ahead to step 10:
If we divide 7090 by 821, we get 8 and a remainder of 522.
Record the quotient 8 as the next digit in the result. 
Result so far: 6267.718
If we subtract 6568 from 7090, we get 522.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5220, and continue the process.

Step 11:
5220 divided by 821 is 6 with a remainder of 294.
The number 6 becomes the next digit in our result. 
Result so far: 6267.7186
The remainder is 294 after subtracting 4926 from 5220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

Step 12:
821 goes into 2940 3 times with a remainder of 477.
The next digit of our result is 3. 
Result so far: 6267.71863
If we subtract 2463 from 2940, we get 477.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4770, and continue the process.

Advancing to step 13:
821 can be fit into 4770 5 times, resulting in a remainder of 665.
The number 5 becomes the next digit in our result. 
Result so far: 6267.718635
If we take 4105 away from 4770, we end up with 665.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6650, and continue the process.

On to step 14:
The number 821 fits into 6650 8 times, leaving a remainder of 82.
The number 8 becomes the next digit in our result. 
Result so far: 6267.7186358
Subtract 6568 from 6650 to get 82.
Since there are no more digits in the dividend, we add a zero to the remainder making it 820, and continue the process.

Step 15:
When dividing 820 by 821, we get 0 with a remainder of 820.
The next digit of our result is 0. 
Result so far: 6267.7186358
Subtracting 0 from 820 leaves us with 820.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8200, and continue the process.

The final result is 6267.7186358 with a remainder of 8.2e-07.