161501 divided by 31 
We're looking to find how many times 31 goes into 161501.

Let's proceed to step 1:
If we divide 1 by 31, we get 0 and 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.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 31

Let's proceed to step 2:
31 goes into 16 0 times with a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Bring next digit (1) of the dividend behind the 16 and repeat the process: 161 / 31

Moving on to step 3:
If we divide 161 by 31, we get 5 and a remainder of 6.
The next digit of our result is 5. 
Result so far: 5.0
If we take 155 away from 161, we end up with 6.
Include the next digit (5) from the dividend after 6, then repeat: 65 / 31

Let's proceed to step 4:
The number 31 fits into 65 2 times, leaving a remainder of 3.
The next digit of our result is 2. 
Result so far: 52.0
Subtract 62 from 65 to get 3.
Append the next digit (0) from the dividend to 3 and continue with: 30 / 31

Moving on to step 5:
If we divide 30 by 31, we get 0 and a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 520.0
If we subtract 0 from 30, we get 30.
Take the next digit (1) from the dividend and append it to 30, then repeat: 301 / 31

Step 6:
31 can be fit into 301 9 times, resulting in a remainder of 22.
Write down 9 as next digit of the result. 
Result so far: 5209.0
The remainder is 22 after subtracting 279 from 301.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 7:
31 can be fit into 220 7 times, resulting in a remainder of 3.
The next digit of our result is 7. 
Result so far: 5209.7
The remainder is 3 after subtracting 217 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 8:
If we divide 30 by 31, we get 0 and a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 5209.7
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 9:
31 goes into 300 9 times with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 5209.709
Subtracting 279 from 300 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 10:
When dividing 210 by 31, we get 6 with a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 5209.7096
Deduct 186 from 210 and we're left 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.

Advancing to step 11:
31 can be fit into 240 7 times, resulting in a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 5209.70967
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

On to step 12:
230 divided by 31 is 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 5209.709677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 5209.709677, with a leftover of 1.3e-06.