We're dividing 164244 by 31 
Our goal is to divide 164244 by 31.

Moving on to step 1:
31 can be fit into 1 0 times, resulting in a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 31

Moving on to step 2:
When dividing 16 by 31, we get 0 with a remainder of 16.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 16, we get 16.
Bring next digit (4) of the dividend behind the 16 and repeat the process: 164 / 31

Moving on to step 3:
31 goes into 164 5 times with a remainder of 9.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we take 155 away from 164, we end up with 9.
Fetch the next digit (2) from the dividend, attach it to 9 and continue: 92 / 31

Let's proceed to step 4:
The number 31 fits into 92 2 times, leaving a remainder of 30.
The next digit of our result is 2. 
Result so far: 52.0
Deduct 62 from 92 and we're left with 30.
Append the next digit (4) from the dividend to 30 and continue with: 304 / 31

Advancing to step 5:
The number 31 fits into 304 9 times, leaving a remainder of 25.
Record the quotient 9 as the next digit in the result. 
Result so far: 529.0
Subtracting 279 from 304 leaves us with 25.
Grab the next digit (4) from the dividend, add it to 25, then carry on: 254 / 31

Going ahead to step 6:
254 divided by 31 is 8 with a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 5298.0
Subtract 248 from 254 to get 6.
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 7:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 5298.1
Deduct 31 from 60 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 8:
If we divide 290 by 31, we get 9 and a remainder of 11.
The number 9 becomes the next digit in our result. 
Result so far: 5298.19
The remainder is 11 after subtracting 279 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 9:
If we divide 110 by 31, we get 3 and a remainder of 17.
Use 3 as the next digit of our solution. 
Result so far: 5298.193
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 10:
If we divide 170 by 31, we get 5 and a remainder of 15.
The next digit of our result is 5. 
Result so far: 5298.1935
Subtract 155 from 170 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 11:
When dividing 150 by 31, we get 4 with a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 5298.19354
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 12:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 5298.193548
If we subtract 248 from 260, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 13:
If we divide 120 by 31, we get 3 and a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 5298.1935483
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 14:
When dividing 270 by 31, we get 8 with a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 5298.19354838
Subtracting 248 from 270 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

The quotient of the division is 5298.19354838, and the remainder is 2.2e-08.