Let's divide 39896991 by 977
Our goal is to divide 39896991 by 977.

On to step 1:
If we divide 3 by 977, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (9) from the dividend after 3, then repeat: 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
The remainder is 39 after subtracting 0 from 39.
Bring next digit (8) of the dividend behind the 39 and repeat the process: 398 / 977

On to step 3:
The number 977 fits into 398 0 times, leaving a remainder of 398.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 398, we end up with 398.
Grab the next digit (9) from the dividend, add it to 398, then carry on: 3989 / 977

Step 4:
977 goes into 3989 4 times with a remainder of 81.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
The remainder is 81 after subtracting 3908 from 3989.
Include the next digit (6) from the dividend after 81, then repeat: 816 / 977

Advancing to step 5:
When dividing 816 by 977, we get 0 with a remainder of 816.
Put 0 as the next digit of the answer. 
Result so far: 40.0
Deduct 0 from 816 and we're left with 816.
Take the next digit (9) from the dividend and append it to 816, then repeat: 8169 / 977

On to step 6:
977 can be fit into 8169 8 times, resulting in a remainder of 353.
Put 8 as the next digit of the answer. 
Result so far: 408.0
If we subtract 7816 from 8169, we get 353.
Grab the next digit (9) from the dividend, add it to 353, then carry on: 3539 / 977

Going ahead to step 7:
If we divide 3539 by 977, we get 3 and a remainder of 608.
Record the quotient 3 as the next digit in the result. 
Result so far: 4083.0
Subtracting 2931 from 3539 leaves us with 608.
Append the next digit (1) from the dividend to 608 and continue with: 6081 / 977

Going ahead to step 8:
When dividing 6081 by 977, we get 6 with a remainder of 219.
The number 6 becomes the next digit in our result. 
Result so far: 40836.0
If we take 5862 away from 6081, we end up with 219.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2190, and continue the process.

Step 9:
If we divide 2190 by 977, we get 2 and a remainder of 236.
Record the quotient 2 as the next digit in the result. 
Result so far: 40836.2
Subtracting 1954 from 2190 leaves us with 236.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2360, and continue the process.

Advancing to step 10:
When dividing 2360 by 977, we get 2 with a remainder of 406.
Record the quotient 2 as the next digit in the result. 
Result so far: 40836.22
If we subtract 1954 from 2360, we get 406.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4060, and continue the process.

The quotient of the division is 40836.22, and the remainder is 0.406.