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

Step 1:
3 divided by 791 is 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 791

On to step 2:
The number 791 fits into 39 0 times, leaving a remainder of 39.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 39 and we're left with 39.
Include the next digit (7) from the dividend after 39, then repeat: 397 / 791

Moving on to step 3:
When dividing 397 by 791, we get 0 with a remainder of 397.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 397 and we're left with 397.
Take the next digit (7) from the dividend and append it to 397, then repeat: 3977 / 791

Advancing to step 4:
3977 divided by 791 is 5 with a remainder of 22.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we subtract 3955 from 3977, we get 22.
Include the next digit (6) from the dividend after 22, then repeat: 226 / 791

Going ahead to step 5:
When dividing 226 by 791, we get 0 with a remainder of 226.
Write down 0 as next digit of the result. 
Result so far: 50.0
Deduct 0 from 226 and we're left with 226.
Grab the next digit (1) from the dividend, add it to 226, then carry on: 2261 / 791

Going ahead to step 6:
When dividing 2261 by 791, we get 2 with a remainder of 679.
Put 2 as the next digit of the answer. 
Result so far: 502.0
Subtract 1582 from 2261 to get 679.
Bring next digit (1) of the dividend behind the 679 and repeat the process: 6791 / 791

Let's proceed to step 7:
791 goes into 6791 8 times with a remainder of 463.
Record the quotient 8 as the next digit in the result. 
Result so far: 5028.0
Deduct 6328 from 6791 and we're left with 463.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4630, and continue the process.

Advancing to step 8:
791 goes into 4630 5 times with a remainder of 675.
Write down 5 as next digit of the result. 
Result so far: 5028.5
If we take 3955 away from 4630, we end up with 675.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6750, and continue the process.

Let's proceed to step 9:
791 can be fit into 6750 8 times, resulting in a remainder of 422.
The next digit of our result is 8. 
Result so far: 5028.58
If we take 6328 away from 6750, we end up with 422.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4220, and continue the process.

On to step 10:
791 goes into 4220 5 times with a remainder of 265.
Put 5 as the next digit of the answer. 
Result so far: 5028.585
Subtract 3955 from 4220 to get 265.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2650, and continue the process.

Step 11:
791 can be fit into 2650 3 times, resulting in a remainder of 277.
Put 3 as the next digit of the answer. 
Result so far: 5028.5853
Deduct 2373 from 2650 and we're left with 277.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2770, and continue the process.

Going ahead to step 12:
791 can be fit into 2770 3 times, resulting in a remainder of 397.
Use 3 as the next digit of our solution. 
Result so far: 5028.58533
Deduct 2373 from 2770 and we're left with 397.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3970, and continue the process.

In conclusion, the division gives 5028.58533 with a balance of 0.000397.