We're dividing 497227 by 31 
We're looking to find how many times 31 goes into 497227.

Moving on to step 1:
If we divide 4 by 31, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 31

Advancing to step 2:
The number 31 fits into 49 1 times, leaving a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 31 from 49 to get 18.
Fetch the next digit (7) from the dividend, attach it to 18 and continue: 187 / 31

Step 3:
If we divide 187 by 31, we get 6 and a remainder of 1.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we take 186 away from 187, we end up with 1.
Take the next digit (2) from the dividend and append it to 1, then repeat: 12 / 31

Advancing to step 4:
12 divided by 31 is 0 with a remainder of 12.
Record the quotient 0 as the next digit in the result. 
Result so far: 160.0
Deduct 0 from 12 and we're left with 12.
Bring next digit (2) of the dividend behind the 12 and repeat the process: 122 / 31

Advancing to step 5:
If we divide 122 by 31, we get 3 and a remainder of 29.
Record the quotient 3 as the next digit in the result. 
Result so far: 1603.0
The remainder is 29 after subtracting 93 from 122.
Fetch the next digit (7) from the dividend, attach it to 29 and continue: 297 / 31

Let's proceed to step 6:
31 can be fit into 297 9 times, resulting in a remainder of 18.
The number 9 becomes the next digit in our result. 
Result so far: 16039.0
If we subtract 279 from 297, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 7:
The number 31 fits into 180 5 times, leaving a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 16039.5
Subtract 155 from 180 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 8:
The number 31 fits into 250 8 times, leaving a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 16039.58
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 9:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 16039.58
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 10:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 16039.5806
If we take 186 away from 200, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 11:
If we divide 140 by 31, we get 4 and a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 16039.58064
Deduct 124 from 140 and we're left 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.

Let's proceed to step 12:
31 goes into 160 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 16039.580645
Subtracting 155 from 160 leaves us with 5.
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 13:
31 can be fit into 50 1 times, resulting in a remainder of 19.
The next digit of our result is 1. 
Result so far: 16039.5806451
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.

Going ahead to step 14:
190 divided by 31 is 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 16039.58064516
If we take 186 away from 190, we end up 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.

The quotient of the division is 16039.58064516, and the remainder is 4e-09.