165584 divided by 31 
Our goal is to divide 165584 by 31.

Step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 31

Moving on to step 2:
If we divide 16 by 31, we get 0 and a remainder of 16.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 16, we end up with 16.
Fetch the next digit (5) from the dividend, attach it to 16 and continue: 165 / 31

Advancing to step 3:
31 goes into 165 5 times with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we take 155 away from 165, we end up with 10.
Include the next digit (5) from the dividend after 10, then repeat: 105 / 31

On to step 4:
31 goes into 105 3 times with a remainder of 12.
Put 3 as the next digit of the answer. 
Result so far: 53.0
If we subtract 93 from 105, we get 12.
Fetch the next digit (8) from the dividend, attach it to 12 and continue: 128 / 31

Going ahead to step 5:
The number 31 fits into 128 4 times, leaving a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 534.0
Deduct 124 from 128 and we're left with 4.
Append the next digit (4) from the dividend to 4 and continue with: 44 / 31

Going ahead to step 6:
31 can be fit into 44 1 times, resulting in a remainder of 13.
The next digit of our result is 1. 
Result so far: 5341.0
If we subtract 31 from 44, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 7:
31 goes into 130 4 times with a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 5341.4
Subtract 124 from 130 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.

Advancing to step 8:
60 divided by 31 is 1 with a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 5341.41
If we subtract 31 from 60, we get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 9:
When dividing 290 by 31, we get 9 with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 5341.419
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.

Moving on to step 10:
When dividing 110 by 31, we get 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 5341.4193
Subtracting 93 from 110 leaves us 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 11:
When dividing 170 by 31, we get 5 with a remainder of 15.
The next digit of our result is 5. 
Result so far: 5341.41935
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 12:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 5341.419354
Subtract 124 from 150 to get 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 13:
260 divided by 31 is 8 with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 5341.4193548
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 14:
31 goes into 120 3 times with a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 5341.41935483
The remainder is 27 after subtracting 93 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

The final result is 5341.41935483 with a remainder of 2.7e-08.