We're dividing 5717007 by 840 
We want to figure out the number of times 5717007 can be divided by 840.

Step 1:
5 divided by 840 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 840

Let's proceed to step 2:
If we divide 57 by 840, we get 0 and a remainder of 57.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 57 leaves us with 57.
Fetch the next digit (1) from the dividend, attach it to 57 and continue: 571 / 840

On to step 3:
The number 840 fits into 571 0 times, leaving a remainder of 571.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 571 leaves us with 571.
Take the next digit (7) from the dividend and append it to 571, then repeat: 5717 / 840

Step 4:
When dividing 5717 by 840, we get 6 with a remainder of 677.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
Subtracting 5040 from 5717 leaves us with 677.
Take the next digit (0) from the dividend and append it to 677, then repeat: 6770 / 840

Let's proceed to step 5:
When dividing 6770 by 840, we get 8 with a remainder of 50.
Write down 8 as next digit of the result. 
Result so far: 68.0
Subtracting 6720 from 6770 leaves us with 50.
Bring next digit (0) of the dividend behind the 50 and repeat the process: 500 / 840

Advancing to step 6:
840 goes into 500 0 times with a remainder of 500.
Record the quotient 0 as the next digit in the result. 
Result so far: 680.0
Subtracting 0 from 500 leaves us with 500.
Take the next digit (7) from the dividend and append it to 500, then repeat: 5007 / 840

On to step 7:
The number 840 fits into 5007 5 times, leaving a remainder of 807.
Put 5 as the next digit of the answer. 
Result so far: 6805.0
If we take 4200 away from 5007, we end up with 807.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8070, and continue the process.

Advancing to step 8:
840 goes into 8070 9 times with a remainder of 510.
The number 9 becomes the next digit in our result. 
Result so far: 6805.9
Subtract 7560 from 8070 to get 510.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5100, and continue the process.

Going ahead to step 9:
The number 840 fits into 5100 6 times, leaving a remainder of 60.
Record the quotient 6 as the next digit in the result. 
Result so far: 6805.96
Deduct 5040 from 5100 and we're left with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

On to step 10:
When dividing 600 by 840, we get 0 with a remainder of 600.
Record the quotient 0 as the next digit in the result. 
Result so far: 6805.96
Subtracting 0 from 600 leaves us with 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

Step 11:
If we divide 6000 by 840, we get 7 and a remainder of 120.
The next digit of our result is 7. 
Result so far: 6805.9607
If we subtract 5880 from 6000, we get 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Advancing to step 12:
840 goes into 1200 1 times with a remainder of 360.
The number 1 becomes the next digit in our result. 
Result so far: 6805.96071
The remainder is 360 after subtracting 840 from 1200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Going ahead to step 13:
When dividing 3600 by 840, we get 4 with a remainder of 240.
Record the quotient 4 as the next digit in the result. 
Result so far: 6805.960714
Subtract 3360 from 3600 to get 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Advancing to step 14:
The number 840 fits into 2400 2 times, leaving a remainder of 720.
The number 2 becomes the next digit in our result. 
Result so far: 6805.9607142
Deduct 1680 from 2400 and we're left with 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7200, and continue the process.

Advancing to step 15:
When dividing 7200 by 840, we get 8 with a remainder of 480.
The next digit of our result is 8. 
Result so far: 6805.96071428
If we subtract 6720 from 7200, we get 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

In conclusion, the division gives 6805.96071428 with a balance of 4.8e-07.