Let's divide 797142 by 7
We want to figure out the number of times 797142 can be divided by 7.

Going ahead to step 1:
7 goes into 7 1 times with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 7 from 7 leaves us with 0.
Bring next digit (9) of the dividend behind the 0 and repeat the process: 9 / 7

Let's proceed to step 2:
If we divide 9 by 7, we get 1 and a remainder of 2.
The next digit of our result is 1. 
Result so far: 11.0
Subtracting 7 from 9 leaves us with 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 7

Moving on to step 3:
If we divide 27 by 7, we get 3 and a remainder of 6.
The number 3 becomes the next digit in our result. 
Result so far: 113.0
Deduct 21 from 27 and we're left with 6.
Fetch the next digit (1) from the dividend, attach it to 6 and continue: 61 / 7

Step 4:
The number 7 fits into 61 8 times, leaving a remainder of 5.
Use 8 as the next digit of our solution. 
Result so far: 1138.0
Subtracting 56 from 61 leaves us with 5.
Fetch the next digit (4) from the dividend, attach it to 5 and continue: 54 / 7

Advancing to step 5:
7 goes into 54 7 times with a remainder of 5.
Use 7 as the next digit of our solution. 
Result so far: 11387.0
Subtracting 49 from 54 leaves us with 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 7

Step 6:
When dividing 52 by 7, we get 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 113877.0
The remainder is 3 after subtracting 49 from 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
30 divided by 7 is 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 113877.4
The remainder is 2 after subtracting 28 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 8:
7 goes into 20 2 times with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 113877.42
If we take 14 away from 20, we end up 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.

Step 9:
60 divided by 7 is 8 with a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 113877.428
Deduct 56 from 60 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 10:
7 goes into 40 5 times with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 113877.4285
Subtract 35 from 40 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.

Step 11:
When dividing 50 by 7, we get 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 113877.42857
The remainder is 1 after subtracting 49 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 12:
10 divided by 7 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 113877.428571
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 13:
30 divided by 7 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 113877.4285714
The remainder is 2 after subtracting 28 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 14:
7 goes into 20 2 times with a remainder of 6.
The next digit of our result is 2. 
Result so far: 113877.42857142
If we take 14 away from 20, we end up 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 113877.42857142, with a leftover of 6e-09.