161431 ÷ 31 
We want to divide 161431 by 31.

Step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 31

On to step 2:
31 can be fit into 16 0 times, resulting in a remainder of 16.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 16 and we're left with 16.
Append the next digit (1) from the dividend to 16 and continue with: 161 / 31

On to step 3:
31 goes into 161 5 times with a remainder of 6.
Write down 5 as next digit of the result. 
Result so far: 5.0
Subtract 155 from 161 to get 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 31

Let's proceed to step 4:
The number 31 fits into 64 2 times, leaving a remainder of 2.
The next digit of our result is 2. 
Result so far: 52.0
The remainder is 2 after subtracting 62 from 64.
Bring next digit (3) of the dividend behind the 2 and repeat the process: 23 / 31

Going ahead to step 5:
31 goes into 23 0 times with a remainder of 23.
Record the quotient 0 as the next digit in the result. 
Result so far: 520.0
Subtract 0 from 23 to get 23.
Append the next digit (1) from the dividend to 23 and continue with: 231 / 31

Advancing to step 6:
31 goes into 231 7 times with a remainder of 14.
Write down 7 as next digit of the result. 
Result so far: 5207.0
Subtract 217 from 231 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 7:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 5207.4
Subtracting 124 from 140 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 8:
31 goes into 160 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 5207.45
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.

On to step 9:
If we divide 50 by 31, we get 1 and a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 5207.451
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 10:
31 goes into 190 6 times with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 5207.4516
Subtract 186 from 190 to 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.

Advancing to step 11:
31 can be fit into 40 1 times, resulting in a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 5207.45161
Deduct 31 from 40 and we're left with 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 12:
When dividing 90 by 31, we get 2 with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 5207.451612
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 13:
280 divided by 31 is 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 5207.4516129
Subtract 279 from 280 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 14:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 5207.4516129
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The quotient of the division is 5207.4516129, and the remainder is 1e-08.