Let's divide 164390 by 31
Our goal is to divide 164390 by 31.

Advancing to step 1:
31 goes into 1 0 times with 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.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 31

On to step 2:
16 divided by 31 is 0 with a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 16 after subtracting 0 from 16.
Include the next digit (4) from the dividend after 16, then repeat: 164 / 31

Advancing to step 3:
When dividing 164 by 31, we get 5 with a remainder of 9.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtracting 155 from 164 leaves us with 9.
Include the next digit (3) from the dividend after 9, then repeat: 93 / 31

Step 4:
31 can be fit into 93 3 times, resulting in a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 53.0
If we take 93 away from 93, we end up with 0.
Include the next digit (9) from the dividend after 0, then repeat: 9 / 31

Let's proceed to step 5:
31 goes into 9 0 times with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 530.0
If we take 0 away from 9, we end up with 9.
Take the next digit (0) from the dividend and append it to 9, then repeat: 90 / 31

On to step 6:
When dividing 90 by 31, we get 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 5302.0
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 7:
When dividing 280 by 31, we get 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 5302.9
Deduct 279 from 280 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.

Step 8:
When dividing 10 by 31, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 5302.9
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 9:
100 divided by 31 is 3 with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 5302.903
Deduct 93 from 100 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 10:
When dividing 70 by 31, we get 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 5302.9032
Deduct 62 from 70 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 11:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 5302.90322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 5302.90322, and the remainder is 1.8e-05.