397444 divided by 31 
We want to figure out the number of times 397444 can be divided by 31.

Step 1:
31 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 31

On to step 2:
If we divide 39 by 31, we get 1 and a remainder of 8.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 31 from 39 leaves us with 8.
Grab the next digit (7) from the dividend, add it to 8, then carry on: 87 / 31

On to step 3:
31 can be fit into 87 2 times, resulting in a remainder of 25.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
If we subtract 62 from 87, we get 25.
Fetch the next digit (4) from the dividend, attach it to 25 and continue: 254 / 31

Moving on to step 4:
31 can be fit into 254 8 times, resulting in a remainder of 6.
Put 8 as the next digit of the answer. 
Result so far: 128.0
Subtracting 248 from 254 leaves us with 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 31

Going ahead to step 5:
The number 31 fits into 64 2 times, leaving a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 1282.0
Subtracting 62 from 64 leaves us with 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 31

Moving on to step 6:
When dividing 24 by 31, we get 0 with a remainder of 24.
Put 0 as the next digit of the answer. 
Result so far: 12820.0
Subtracting 0 from 24 leaves us 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.

Let's proceed to step 7:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 12820.7
Subtract 217 from 240 to get 23.
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 8:
If we divide 230 by 31, we get 7 and a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 12820.77
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

After the division, we end up with 12820.77 and a remainder of 0.013.