We divide 31594 by 31
Our goal is to divide 31594 by 31.

Advancing to step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 31

Step 2:
31 can be fit into 31 1 times, resulting in a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 31 from 31 to get 0.
Append the next digit (5) from the dividend to 0 and continue with: 5 / 31

On to step 3:
31 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we subtract 0 from 5, we get 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 31

Advancing to step 4:
The number 31 fits into 59 1 times, leaving a remainder of 28.
The number 1 becomes the next digit in our result. 
Result so far: 101.0
Subtract 31 from 59 to get 28.
Include the next digit (4) from the dividend after 28, then repeat: 284 / 31

Advancing to step 5:
31 can be fit into 284 9 times, resulting in a remainder of 5.
The next digit of our result is 9. 
Result so far: 1019.0
If we subtract 279 from 284, we get 5.
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 6:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 1019.1
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 7:
If we divide 190 by 31, we get 6 and a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 1019.16
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 8:
If we divide 40 by 31, we get 1 and a remainder of 9.
The next digit of our result is 1. 
Result so far: 1019.161
Subtracting 31 from 40 leaves us 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.

Let's proceed to step 9:
90 divided by 31 is 2 with a remainder of 28.
The next digit of our result is 2. 
Result so far: 1019.1612
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.

Advancing to step 10:
31 goes into 280 9 times with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 1019.16129
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.

Let's proceed to step 11:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 1019.16129
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 12:
31 goes into 100 3 times with a remainder of 7.
The next digit of our result is 3. 
Result so far: 1019.1612903
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 13:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 1019.16129032
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 1019.16129032, and the remainder is 8e-09.