We're dividing 39741277 by 997 
We're looking to find how many times 997 goes into 39741277.

On to step 1:
If we divide 3 by 997, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 997

Moving on to step 2:
997 goes into 39 0 times with a remainder of 39.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Include the next digit (7) from the dividend after 39, then repeat: 397 / 997

Going ahead to step 3:
997 can be fit into 397 0 times, resulting in a remainder of 397.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 397 and we're left with 397.
Bring next digit (4) of the dividend behind the 397 and repeat the process: 3974 / 997

Moving on to step 4:
The number 997 fits into 3974 3 times, leaving a remainder of 983.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 2991 from 3974 leaves us with 983.
Fetch the next digit (1) from the dividend, attach it to 983 and continue: 9831 / 997

On to step 5:
997 can be fit into 9831 9 times, resulting in a remainder of 858.
The next digit of our result is 9. 
Result so far: 39.0
The remainder is 858 after subtracting 8973 from 9831.
Take the next digit (2) from the dividend and append it to 858, then repeat: 8582 / 997

Let's proceed to step 6:
If we divide 8582 by 997, we get 8 and a remainder of 606.
Record the quotient 8 as the next digit in the result. 
Result so far: 398.0
Subtracting 7976 from 8582 leaves us with 606.
Grab the next digit (7) from the dividend, add it to 606, then carry on: 6067 / 997

Advancing to step 7:
The number 997 fits into 6067 6 times, leaving a remainder of 85.
The next digit of our result is 6. 
Result so far: 3986.0
Subtracting 5982 from 6067 leaves us with 85.
Grab the next digit (7) from the dividend, add it to 85, then carry on: 857 / 997

Going ahead to step 8:
If we divide 857 by 997, we get 0 and a remainder of 857.
Record the quotient 0 as the next digit in the result. 
Result so far: 39860.0
If we take 0 away from 857, we end up with 857.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8570, and continue the process.

Moving on to step 9:
If we divide 8570 by 997, we get 8 and a remainder of 594.
Use 8 as the next digit of our solution. 
Result so far: 39860.8
Deduct 7976 from 8570 and we're left with 594.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5940, and continue the process.

Moving on to step 10:
997 goes into 5940 5 times with a remainder of 955.
Put 5 as the next digit of the answer. 
Result so far: 39860.85
Subtract 4985 from 5940 to get 955.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9550, and continue the process.

On to step 11:
When dividing 9550 by 997, we get 9 with a remainder of 577.
Record the quotient 9 as the next digit in the result. 
Result so far: 39860.859
Subtracting 8973 from 9550 leaves us with 577.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5770, and continue the process.

Step 12:
997 can be fit into 5770 5 times, resulting in a remainder of 785.
The number 5 becomes the next digit in our result. 
Result so far: 39860.8595
The remainder is 785 after subtracting 4985 from 5770.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7850, and continue the process.

Advancing to step 13:
997 goes into 7850 7 times with a remainder of 871.
Record the quotient 7 as the next digit in the result. 
Result so far: 39860.85957
If we subtract 6979 from 7850, we get 871.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8710, and continue the process.

Let's proceed to step 14:
997 can be fit into 8710 8 times, resulting in a remainder of 734.
Write down 8 as next digit of the result. 
Result so far: 39860.859578
The remainder is 734 after subtracting 7976 from 8710.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7340, and continue the process.

Step 15:
The number 997 fits into 7340 7 times, leaving a remainder of 361.
Put 7 as the next digit of the answer. 
Result so far: 39860.8595787
Deduct 6979 from 7340 and we're left with 361.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3610, and continue the process.

Advancing to step 16:
When dividing 3610 by 997, we get 3 with a remainder of 619.
The next digit of our result is 3. 
Result so far: 39860.85957873
The remainder is 619 after subtracting 2991 from 3610.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6190, and continue the process.

The final result is 39860.85957873 with a remainder of 6.19e-07.