We divide 395663 by 40
Our goal is to divide 395663 by 40.

Step 1:
40 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 40

Going ahead to step 2:
The number 40 fits into 39 0 times, leaving a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Include the next digit (5) from the dividend after 39, then repeat: 395 / 40

Advancing to step 3:
The number 40 fits into 395 9 times, leaving a remainder of 35.
The next digit of our result is 9. 
Result so far: 9.0
The remainder is 35 after subtracting 360 from 395.
Append the next digit (6) from the dividend to 35 and continue with: 356 / 40

Let's proceed to step 4:
356 divided by 40 is 8 with a remainder of 36.
Record the quotient 8 as the next digit in the result. 
Result so far: 98.0
Subtract 320 from 356 to get 36.
Take the next digit (6) from the dividend and append it to 36, then repeat: 366 / 40

Let's proceed to step 5:
If we divide 366 by 40, we get 9 and a remainder of 6.
Use 9 as the next digit of our solution. 
Result so far: 989.0
Subtracting 360 from 366 leaves us with 6.
Take the next digit (3) from the dividend and append it to 6, then repeat: 63 / 40

Moving on to step 6:
63 divided by 40 is 1 with a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 9891.0
Subtracting 40 from 63 leaves us with 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 7:
230 divided by 40 is 5 with a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 9891.5
If we subtract 200 from 230, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 9891.57
If we subtract 280 from 300, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 9:
40 goes into 200 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 9891.575
Subtract 200 from 200 to get 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 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 9891.575
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 9891.575
If we take 0 away from 0, 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.

The quotient of the division is 9891.575, and the remainder is 0.0.