Let's divide 494037 by 31
We want to figure out the number of times 494037 can be divided by 31.

Going ahead to step 1:
When dividing 4 by 31, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 31

Advancing to step 2:
31 goes into 49 1 times with a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 18 after subtracting 31 from 49.
Grab the next digit (4) from the dividend, add it to 18, then carry on: 184 / 31

On to step 3:
31 goes into 184 5 times with a remainder of 29.
Write down 5 as next digit of the result. 
Result so far: 15.0
Subtract 155 from 184 to get 29.
Append the next digit (0) from the dividend to 29 and continue with: 290 / 31

Advancing to step 4:
31 can be fit into 290 9 times, resulting in a remainder of 11.
The next digit of our result is 9. 
Result so far: 159.0
If we take 279 away from 290, we end up with 11.
Take the next digit (3) from the dividend and append it to 11, then repeat: 113 / 31

Advancing to step 5:
31 can be fit into 113 3 times, resulting in a remainder of 20.
The number 3 becomes the next digit in our result. 
Result so far: 1593.0
If we subtract 93 from 113, we get 20.
Bring next digit (7) of the dividend behind the 20 and repeat the process: 207 / 31

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

Advancing to step 7:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 15936.6
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.

On to step 8:
The number 31 fits into 240 7 times, leaving a remainder of 23.
The next digit of our result is 7. 
Result so far: 15936.67
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.

Advancing to step 9:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 15936.677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 15936.677, and the remainder is 0.0013.