We divide 170504 by 7
We're looking to find how many times 7 goes into 170504.

On to step 1:
1 divided by 7 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 7

Let's proceed to step 2:
7 goes into 17 2 times with a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 14 from 17, we get 3.
Bring next digit (0) of the dividend behind the 3 and repeat the process: 30 / 7

Step 3:
7 goes into 30 4 times with a remainder of 2.
The next digit of our result is 4. 
Result so far: 24.0
If we take 28 away from 30, we end up with 2.
Take the next digit (5) from the dividend and append it to 2, then repeat: 25 / 7

Advancing to step 4:
The number 7 fits into 25 3 times, leaving a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 243.0
Subtracting 21 from 25 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 7

On to step 5:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 2435.0
Subtracting 35 from 40 leaves us with 5.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 7

Step 6:
If we divide 54 by 7, we get 7 and a remainder of 5.
The next digit of our result is 7. 
Result so far: 24357.0
If we subtract 49 from 54, we 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 7:
7 can be fit into 50 7 times, resulting in a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 24357.7
If we subtract 49 from 50, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 8:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 24357.71
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 9:
7 goes into 30 4 times with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 24357.714
If we take 28 away from 30, we end up with 2.
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:
7 goes into 20 2 times with a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 24357.7142
The remainder is 6 after subtracting 14 from 20.
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 11:
If we divide 60 by 7, we get 8 and a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 24357.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.

Let's proceed to step 12:
If we divide 40 by 7, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 24357.714285
If we take 35 away from 40, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 13:
7 can be fit into 50 7 times, resulting in a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 24357.7142857
Subtract 49 from 50 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 14:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 24357.71428571
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.

The final outcome is 24357.71428571, with a leftover of 3e-09.