We divide 170791 by 7
We want to divide 170791 by 7.

On to step 1:
7 can be fit into 1 0 times, resulting in a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 7

Let's proceed to step 2:
17 divided by 7 is 2 with a remainder of 3.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtract 14 from 17 to get 3.
Take the next digit (0) from the dividend and append it to 3, then repeat: 30 / 7

Let's proceed to step 3:
7 can be fit into 30 4 times, resulting in a remainder of 2.
The next digit of our result is 4. 
Result so far: 24.0
Deduct 28 from 30 and we're left with 2.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 7

Moving on to step 4:
7 can be fit into 27 3 times, resulting in a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 243.0
Subtract 21 from 27 to get 6.
Bring next digit (9) of the dividend behind the 6 and repeat the process: 69 / 7

Let's proceed to step 5:
The number 7 fits into 69 9 times, leaving a remainder of 6.
The number 9 becomes the next digit in our result. 
Result so far: 2439.0
If we take 63 away from 69, we end up with 6.
Fetch the next digit (1) from the dividend, attach it to 6 and continue: 61 / 7

Let's proceed to step 6:
61 divided by 7 is 8 with a remainder of 5.
The next digit of our result is 8. 
Result so far: 24398.0
Subtract 56 from 61 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.

Advancing to step 7:
If we divide 50 by 7, we get 7 and a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 24398.7
If we take 49 away from 50, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 8:
When dividing 10 by 7, we get 1 with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 24398.71
If we take 7 away from 10, 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.

Let's proceed to step 9:
If we divide 30 by 7, we get 4 and a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 24398.714
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.

Let's proceed to step 10:
20 divided by 7 is 2 with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 24398.7142
Deduct 14 from 20 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.

Step 11:
7 goes into 60 8 times with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 24398.71428
If we take 56 away from 60, we end up 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.

Moving on to step 12:
When dividing 40 by 7, we get 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 24398.714285
The remainder is 5 after subtracting 35 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 13:
7 can be fit into 50 7 times, resulting in a remainder of 1.
The next digit of our result is 7. 
Result so far: 24398.7142857
Deduct 49 from 50 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 14:
When dividing 10 by 7, we get 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 24398.71428571
The remainder is 3 after subtracting 7 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

After the division, we end up with 24398.71428571 and a remainder of 3e-09.