We look at the division of 389664 by 40 
Our goal is to divide 389664 by 40.

Let's proceed to step 1:
If we divide 3 by 40, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 40

On to step 2:
When dividing 38 by 40, we get 0 with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 38 after subtracting 0 from 38.
Include the next digit (9) from the dividend after 38, then repeat: 389 / 40

Going ahead to step 3:
If we divide 389 by 40, we get 9 and a remainder of 29.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
If we take 360 away from 389, we end up with 29.
Fetch the next digit (6) from the dividend, attach it to 29 and continue: 296 / 40

Moving on to step 4:
296 divided by 40 is 7 with a remainder of 16.
Record the quotient 7 as the next digit in the result. 
Result so far: 97.0
Subtracting 280 from 296 leaves us with 16.
Bring next digit (6) of the dividend behind the 16 and repeat the process: 166 / 40

Going ahead to step 5:
When dividing 166 by 40, we get 4 with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 974.0
Deduct 160 from 166 and we're left with 6.
Append the next digit (4) from the dividend to 6 and continue with: 64 / 40

Let's proceed to step 6:
The number 40 fits into 64 1 times, leaving a remainder of 24.
Use 1 as the next digit of our solution. 
Result so far: 9741.0
The remainder is 24 after subtracting 40 from 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 7:
40 can be fit into 240 6 times, resulting in a remainder of 0.
The next digit of our result is 6. 
Result so far: 9741.6
If we take 240 away from 240, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 8:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 9741.6
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 9741.6
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 9741.6 with a remainder of 0.0.