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

Let's proceed to step 1:
3 divided by 31 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 31

Going ahead to step 2:
31 can be fit into 39 1 times, resulting in a remainder of 8.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 31 from 39, we get 8.
Append the next digit (6) from the dividend to 8 and continue with: 86 / 31

Moving on to step 3:
31 can be fit into 86 2 times, resulting in a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Subtract 62 from 86 to get 24.
Append the next digit (9) from the dividend to 24 and continue with: 249 / 31

Going ahead to step 4:
If we divide 249 by 31, we get 8 and a remainder of 1.
Write down 8 as next digit of the result. 
Result so far: 128.0
If we subtract 248 from 249, we get 1.
Fetch the next digit (9) from the dividend, attach it to 1 and continue: 19 / 31

On to step 5:
19 divided by 31 is 0 with a remainder of 19.
Write down 0 as next digit of the result. 
Result so far: 1280.0
Subtract 0 from 19 to get 19.
Bring next digit (5) of the dividend behind the 19 and repeat the process: 195 / 31

Let's proceed to step 6:
The number 31 fits into 195 6 times, leaving a remainder of 9.
The next digit of our result is 6. 
Result so far: 12806.0
If we take 186 away from 195, we end up 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 7:
When dividing 90 by 31, we get 2 with a remainder of 28.
The next digit of our result is 2. 
Result so far: 12806.2
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.

On to step 8:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 12806.29
Subtract 279 from 280 to 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.

Advancing to step 9:
31 goes into 10 0 times with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 12806.29
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 10:
When dividing 100 by 31, we get 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 12806.2903
If we subtract 93 from 100, we 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 11:
31 goes into 70 2 times with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 12806.29032
If we take 62 away from 70, we end up 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.

Let's proceed to step 12:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 12806.290322
If we take 62 away from 80, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Our division results in 12806.290322 with a remaining 1.8e-06.