We look at the division of 39817 by 12 
Let's see how many times 12 fits into 39817.

Going ahead to step 1:
The number 12 fits into 3 0 times, leaving a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 12

Advancing to step 2:
12 goes into 39 3 times with a remainder of 3.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 36 from 39, we get 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 12

Step 3:
The number 12 fits into 38 3 times, leaving a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 33.0
Deduct 36 from 38 and we're left with 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 12

Step 4:
When dividing 21 by 12, we get 1 with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 331.0
The remainder is 9 after subtracting 12 from 21.
Take the next digit (7) from the dividend and append it to 9, then repeat: 97 / 12

Step 5:
12 can be fit into 97 8 times, resulting in a remainder of 1.
The next digit of our result is 8. 
Result so far: 3318.0
If we take 96 away from 97, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 6:
10 divided by 12 is 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 3318.0
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 7:
The number 12 fits into 100 8 times, leaving a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 3318.08
Deduct 96 from 100 and we're left 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.

Going ahead to step 8:
When dividing 40 by 12, we get 3 with a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 3318.083
Subtract 36 from 40 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 9:
The number 12 fits into 40 3 times, leaving a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 3318.0833
The remainder is 4 after subtracting 36 from 40.
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 3318.0833, and the remainder is 4e-05.