We're dividing 39977365 by 331 
We want to figure out the number of times 39977365 can be divided by 331.

Let's proceed to step 1:
When dividing 3 by 331, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 331

On to step 2:
331 goes into 39 0 times with a remainder of 39.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 39, we end up with 39.
Take the next digit (9) from the dividend and append it to 39, then repeat: 399 / 331

Moving on to step 3:
When dividing 399 by 331, we get 1 with a remainder of 68.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 331 from 399, we get 68.
Include the next digit (7) from the dividend after 68, then repeat: 687 / 331

Moving on to step 4:
687 divided by 331 is 2 with a remainder of 25.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Subtract 662 from 687 to get 25.
Fetch the next digit (7) from the dividend, attach it to 25 and continue: 257 / 331

Moving on to step 5:
The number 331 fits into 257 0 times, leaving a remainder of 257.
Write down 0 as next digit of the result. 
Result so far: 120.0
The remainder is 257 after subtracting 0 from 257.
Fetch the next digit (3) from the dividend, attach it to 257 and continue: 2573 / 331

Advancing to step 6:
331 goes into 2573 7 times with a remainder of 256.
Record the quotient 7 as the next digit in the result. 
Result so far: 1207.0
If we subtract 2317 from 2573, we get 256.
Grab the next digit (6) from the dividend, add it to 256, then carry on: 2566 / 331

Going ahead to step 7:
When dividing 2566 by 331, we get 7 with a remainder of 249.
The next digit of our result is 7. 
Result so far: 12077.0
If we take 2317 away from 2566, we end up with 249.
Take the next digit (5) from the dividend and append it to 249, then repeat: 2495 / 331

Let's proceed to step 8:
331 can be fit into 2495 7 times, resulting in a remainder of 178.
The next digit of our result is 7. 
Result so far: 120777.0
The remainder is 178 after subtracting 2317 from 2495.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

Step 9:
If we divide 1780 by 331, we get 5 and a remainder of 125.
Write down 5 as next digit of the result. 
Result so far: 120777.5
Subtracting 1655 from 1780 leaves us with 125.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1250, and continue the process.

Advancing to step 10:
The number 331 fits into 1250 3 times, leaving a remainder of 257.
The next digit of our result is 3. 
Result so far: 120777.53
Subtract 993 from 1250 to get 257.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2570, and continue the process.

Let's proceed to step 11:
The number 331 fits into 2570 7 times, leaving a remainder of 253.
The next digit of our result is 7. 
Result so far: 120777.537
If we subtract 2317 from 2570, we get 253.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2530, and continue the process.

Going ahead to step 12:
When dividing 2530 by 331, we get 7 with a remainder of 213.
The number 7 becomes the next digit in our result. 
Result so far: 120777.5377
Deduct 2317 from 2530 and we're left with 213.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2130, and continue the process.

In conclusion, the division gives 120777.5377 with a balance of 0.00213.