We look at the division of 164593 by 7 
Our goal is to divide 164593 by 7.

Going ahead to step 1:
7 goes into 1 0 times with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 7

Let's proceed to step 2:
7 can be fit into 16 2 times, resulting in a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 14 from 16 and we're left with 2.
Append the next digit (4) from the dividend to 2 and continue with: 24 / 7

Advancing to step 3:
The number 7 fits into 24 3 times, leaving a remainder of 3.
Record the quotient 3 as the next digit in the result. 
Result so far: 23.0
If we subtract 21 from 24, we get 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 7

Going ahead to step 4:
35 divided by 7 is 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 235.0
If we take 35 away from 35, we end up with 0.
Include the next digit (9) from the dividend after 0, then repeat: 9 / 7

Moving on to step 5:
If we divide 9 by 7, we get 1 and a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 2351.0
Subtract 7 from 9 to get 2.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 7

Step 6:
7 goes into 23 3 times with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 23513.0
Deduct 21 from 23 and we're left 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.

Going ahead to step 7:
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: 23513.2
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.

Let's proceed to step 8:
60 divided by 7 is 8 with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 23513.28
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.

Advancing to step 9:
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: 23513.285
Subtracting 35 from 40 leaves us 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.

Moving on to step 10:
7 goes into 50 7 times with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 23513.2857
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.

Advancing to step 11:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 23513.28571
Deduct 7 from 10 and we're left 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.

Advancing to step 12:
When dividing 30 by 7, we get 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 23513.285714
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.

Going ahead to step 13:
7 can be fit into 20 2 times, resulting in a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 23513.2857142
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.

On to step 14:
The number 7 fits into 60 8 times, leaving a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 23513.28571428
If we subtract 56 from 60, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 23513.28571428 with a remaining 4e-09.