39964515 divided by 977 
We want to divide 39964515 by 977.

Step 1:
977 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 977

Advancing to step 2:
The number 977 fits into 39 0 times, leaving a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Bring next digit (9) of the dividend behind the 39 and repeat the process: 399 / 977

Going ahead to step 3:
399 divided by 977 is 0 with a remainder of 399.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 399 after subtracting 0 from 399.
Bring next digit (6) of the dividend behind the 399 and repeat the process: 3996 / 977

Going ahead to step 4:
977 can be fit into 3996 4 times, resulting in a remainder of 88.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we subtract 3908 from 3996, we get 88.
Bring next digit (4) of the dividend behind the 88 and repeat the process: 884 / 977

Step 5:
977 can be fit into 884 0 times, resulting in a remainder of 884.
Use 0 as the next digit of our solution. 
Result so far: 40.0
If we subtract 0 from 884, we get 884.
Grab the next digit (5) from the dividend, add it to 884, then carry on: 8845 / 977

Going ahead to step 6:
977 can be fit into 8845 9 times, resulting in a remainder of 52.
The next digit of our result is 9. 
Result so far: 409.0
Subtract 8793 from 8845 to get 52.
Append the next digit (1) from the dividend to 52 and continue with: 521 / 977

Going ahead to step 7:
The number 977 fits into 521 0 times, leaving a remainder of 521.
Write down 0 as next digit of the result. 
Result so far: 4090.0
The remainder is 521 after subtracting 0 from 521.
Bring next digit (5) of the dividend behind the 521 and repeat the process: 5215 / 977

Step 8:
977 can be fit into 5215 5 times, resulting in a remainder of 330.
Write down 5 as next digit of the result. 
Result so far: 40905.0
If we take 4885 away from 5215, we end up with 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3300, and continue the process.

Going ahead to step 9:
When dividing 3300 by 977, we get 3 with a remainder of 369.
Use 3 as the next digit of our solution. 
Result so far: 40905.3
Deduct 2931 from 3300 and we're left with 369.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3690, and continue the process.

Step 10:
If we divide 3690 by 977, we get 3 and a remainder of 759.
The number 3 becomes the next digit in our result. 
Result so far: 40905.33
Subtract 2931 from 3690 to get 759.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7590, and continue the process.

The final outcome is 40905.33, with a leftover of 0.759.