161596 divided by 31 
Let's see how many times 31 fits into 161596.

On to step 1:
1 divided by 31 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 31

Moving on to step 2:
When dividing 16 by 31, we get 0 with a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 16, we get 16.
Take the next digit (1) from the dividend and append it to 16, then repeat: 161 / 31

Going ahead to step 3:
The number 31 fits into 161 5 times, leaving a remainder of 6.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we take 155 away from 161, we end up with 6.
Append the next digit (5) from the dividend to 6 and continue with: 65 / 31

Step 4:
65 divided by 31 is 2 with a remainder of 3.
The next digit of our result is 2. 
Result so far: 52.0
The remainder is 3 after subtracting 62 from 65.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 31

Let's proceed to step 5:
If we divide 39 by 31, we get 1 and a remainder of 8.
The next digit of our result is 1. 
Result so far: 521.0
Deduct 31 from 39 and we're left with 8.
Grab the next digit (6) from the dividend, add it to 8, then carry on: 86 / 31

Advancing to step 6:
31 goes into 86 2 times with a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 5212.0
Subtracting 62 from 86 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 7:
When dividing 240 by 31, we get 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 5212.7
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 8:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 5212.77
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 5212.77 with a remaining 0.013.