Let's divide 397945 by 39
Our goal is to divide 397945 by 39.

Going ahead to step 1:
39 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 39

On to step 2:
The number 39 fits into 39 1 times, leaving a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 0 after subtracting 39 from 39.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 39

Let's proceed to step 3:
If we divide 7 by 39, we get 0 and a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 10.0
If we take 0 away from 7, we end up with 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 39

Let's proceed to step 4:
The number 39 fits into 79 2 times, leaving a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 102.0
The remainder is 1 after subtracting 78 from 79.
Append the next digit (4) from the dividend to 1 and continue with: 14 / 39

Going ahead to step 5:
When dividing 14 by 39, we get 0 with a remainder of 14.
Write down 0 as next digit of the result. 
Result so far: 1020.0
Deduct 0 from 14 and we're left with 14.
Take the next digit (5) from the dividend and append it to 14, then repeat: 145 / 39

Step 6:
145 divided by 39 is 3 with a remainder of 28.
Record the quotient 3 as the next digit in the result. 
Result so far: 10203.0
The remainder is 28 after subtracting 117 from 145.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 7:
39 can be fit into 280 7 times, resulting in a remainder of 7.
Use 7 as the next digit of our solution. 
Result so far: 10203.7
If we subtract 273 from 280, 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.

On to step 8:
70 divided by 39 is 1 with a remainder of 31.
Write down 1 as next digit of the result. 
Result so far: 10203.71
The remainder is 31 after subtracting 39 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 9:
The number 39 fits into 310 7 times, leaving a remainder of 37.
Write down 7 as next digit of the result. 
Result so far: 10203.717
Deduct 273 from 310 and we're left with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Moving on to step 10:
If we divide 370 by 39, we get 9 and a remainder of 19.
Use 9 as the next digit of our solution. 
Result so far: 10203.7179
Subtract 351 from 370 to get 19.
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 11:
190 divided by 39 is 4 with a remainder of 34.
Put 4 as the next digit of the answer. 
Result so far: 10203.71794
Subtract 156 from 190 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 12:
The number 39 fits into 340 8 times, leaving a remainder of 28.
Use 8 as the next digit of our solution. 
Result so far: 10203.717948
The remainder is 28 after subtracting 312 from 340.
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 13:
280 divided by 39 is 7 with a remainder of 7.
Record the quotient 7 as the next digit in the result. 
Result so far: 10203.7179487
Deduct 273 from 280 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 14:
39 can be fit into 70 1 times, resulting in a remainder of 31.
Use 1 as the next digit of our solution. 
Result so far: 10203.71794871
The remainder is 31 after subtracting 39 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Our division results in 10203.71794871 with a remaining 3.1e-08.