We divide 165321 by 31
Our goal is to divide 165321 by 31.

Step 1:
31 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 31

Advancing to step 2:
If we divide 16 by 31, we get 0 and 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 (5) of the dividend behind the 16 and repeat the process: 165 / 31

Moving on to step 3:
31 goes into 165 5 times with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we subtract 155 from 165, we get 10.
Fetch the next digit (3) from the dividend, attach it to 10 and continue: 103 / 31

Let's proceed to step 4:
If we divide 103 by 31, we get 3 and a remainder of 10.
Record the quotient 3 as the next digit in the result. 
Result so far: 53.0
If we subtract 93 from 103, we get 10.
Take the next digit (2) from the dividend and append it to 10, then repeat: 102 / 31

Advancing to step 5:
When dividing 102 by 31, we get 3 with a remainder of 9.
Record the quotient 3 as the next digit in the result. 
Result so far: 533.0
Subtracting 93 from 102 leaves us with 9.
Fetch the next digit (1) from the dividend, attach it to 9 and continue: 91 / 31

Step 6:
31 can be fit into 91 2 times, resulting in a remainder of 29.
Record the quotient 2 as the next digit in the result. 
Result so far: 5332.0
The remainder is 29 after subtracting 62 from 91.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 7:
290 divided by 31 is 9 with a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 5332.9
Deduct 279 from 290 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 8:
31 goes into 110 3 times with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 5332.93
If we take 93 away from 110, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 9:
If we divide 170 by 31, we get 5 and a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 5332.935
The remainder is 15 after subtracting 155 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 10:
If we divide 150 by 31, we get 4 and a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 5332.9354
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 11:
31 goes into 260 8 times with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 5332.93548
If we take 248 away from 260, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 12:
If we divide 120 by 31, we get 3 and a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 5332.935483
If we subtract 93 from 120, we 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.

Going ahead to step 13:
If we divide 270 by 31, we get 8 and a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 5332.9354838
Deduct 248 from 270 and we're left 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.

Moving on to step 14:
31 goes into 220 7 times with a remainder of 3.
The next digit of our result is 7. 
Result so far: 5332.93548387
If we subtract 217 from 220, we 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.

Our division results in 5332.93548387 with a remaining 3e-09.