We're dividing 126485 by 31 
We want to divide 126485 by 31.

Let's proceed to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 31

On to step 2:
12 divided by 31 is 0 with a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 12 leaves us with 12.
Fetch the next digit (6) from the dividend, attach it to 12 and continue: 126 / 31

Step 3:
When dividing 126 by 31, we get 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtracting 124 from 126 leaves us with 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 31

Moving on to step 4:
If we divide 24 by 31, we get 0 and a remainder of 24.
Write down 0 as next digit of the result. 
Result so far: 40.0
The remainder is 24 after subtracting 0 from 24.
Take the next digit (8) from the dividend and append it to 24, then repeat: 248 / 31

Let's proceed to step 5:
The number 31 fits into 248 8 times, leaving a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 408.0
Subtracting 248 from 248 leaves us with 0.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 31

Moving on to step 6:
31 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 4080.0
The remainder is 5 after subtracting 0 from 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
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: 4080.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.

On to step 8:
When dividing 190 by 31, we get 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 4080.16
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 9:
When dividing 40 by 31, we get 1 with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 4080.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.

Moving on to step 10:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The next digit of our result is 2. 
Result so far: 4080.1612
Deduct 62 from 90 and we're left 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.

Going ahead to step 11:
280 divided by 31 is 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 4080.16129
If we subtract 279 from 280, we 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.

Let's proceed to step 12:
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: 4080.16129
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 13:
If we divide 100 by 31, we get 3 and a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 4080.1612903
Subtract 93 from 100 to get 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 14:
31 can be fit into 70 2 times, resulting in a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 4080.16129032
If we subtract 62 from 70, we get 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 4080.16129032, and the remainder is 8e-09.