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

On to step 1:
31 goes into 1 0 times with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 31

On to step 2:
The number 31 fits into 16 0 times, leaving a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 16, we get 16.
Fetch the next digit (1) from the dividend, attach it to 16 and continue: 161 / 31

Advancing to step 3:
31 can be fit into 161 5 times, resulting in a remainder of 6.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we subtract 155 from 161, we get 6.
Take the next digit (1) from the dividend and append it to 6, then repeat: 61 / 31

On to step 4:
When dividing 61 by 31, we get 1 with a remainder of 30.
Put 1 as the next digit of the answer. 
Result so far: 51.0
If we subtract 31 from 61, we get 30.
Fetch the next digit (8) from the dividend, attach it to 30 and continue: 308 / 31

Advancing to step 5:
If we divide 308 by 31, we get 9 and a remainder of 29.
Use 9 as the next digit of our solution. 
Result so far: 519.0
If we subtract 279 from 308, we get 29.
Append the next digit (9) from the dividend to 29 and continue with: 299 / 31

Let's proceed to step 6:
299 divided by 31 is 9 with a remainder of 20.
Put 9 as the next digit of the answer. 
Result so far: 5199.0
If we subtract 279 from 299, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 7:
31 goes into 200 6 times with a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 5199.6
The remainder is 14 after subtracting 186 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 8:
31 goes into 140 4 times with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 5199.64
Subtract 124 from 140 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 9:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 5199.645
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 10:
When dividing 50 by 31, we get 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 5199.6451
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 11:
When dividing 190 by 31, we get 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 5199.64516
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 12:
31 can be fit into 40 1 times, resulting in a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 5199.645161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 13:
90 divided by 31 is 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 5199.6451612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 14:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 5199.64516129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

After the division, we end up with 5199.64516129 and a remainder of 1e-09.