Let's divide 39164952 by 791
We want to divide 39164952 by 791.

Step 1:
When dividing 3 by 791, we get 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 791

Moving on to step 2:
If we divide 39 by 791, we get 0 and 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.
Bring next digit (1) of the dividend behind the 39 and repeat the process: 391 / 791

Going ahead to step 3:
If we divide 391 by 791, we get 0 and a remainder of 391.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 391 to get 391.
Bring next digit (6) of the dividend behind the 391 and repeat the process: 3916 / 791

Step 4:
791 goes into 3916 4 times with a remainder of 752.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Deduct 3164 from 3916 and we're left with 752.
Append the next digit (4) from the dividend to 752 and continue with: 7524 / 791

On to step 5:
791 can be fit into 7524 9 times, resulting in a remainder of 405.
Record the quotient 9 as the next digit in the result. 
Result so far: 49.0
Subtract 7119 from 7524 to get 405.
Take the next digit (9) from the dividend and append it to 405, then repeat: 4059 / 791

Advancing to step 6:
791 goes into 4059 5 times with a remainder of 104.
Use 5 as the next digit of our solution. 
Result so far: 495.0
If we subtract 3955 from 4059, we get 104.
Bring next digit (5) of the dividend behind the 104 and repeat the process: 1045 / 791

Let's proceed to step 7:
791 can be fit into 1045 1 times, resulting in a remainder of 254.
Record the quotient 1 as the next digit in the result. 
Result so far: 4951.0
The remainder is 254 after subtracting 791 from 1045.
Append the next digit (2) from the dividend to 254 and continue with: 2542 / 791

Let's proceed to step 8:
791 goes into 2542 3 times with a remainder of 169.
Write down 3 as next digit of the result. 
Result so far: 49513.0
Subtract 2373 from 2542 to get 169.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1690, and continue the process.

Going ahead to step 9:
1690 divided by 791 is 2 with a remainder of 108.
The number 2 becomes the next digit in our result. 
Result so far: 49513.2
If we take 1582 away from 1690, we end up with 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

On to step 10:
1080 divided by 791 is 1 with a remainder of 289.
Put 1 as the next digit of the answer. 
Result so far: 49513.21
Subtract 791 from 1080 to get 289.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2890, and continue the process.

Let's proceed to step 11:
791 can be fit into 2890 3 times, resulting in a remainder of 517.
Put 3 as the next digit of the answer. 
Result so far: 49513.213
The remainder is 517 after subtracting 2373 from 2890.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5170, and continue the process.

Advancing to step 12:
When dividing 5170 by 791, we get 6 with a remainder of 424.
Put 6 as the next digit of the answer. 
Result so far: 49513.2136
If we take 4746 away from 5170, we end up with 424.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4240, and continue the process.

Moving on to step 13:
If we divide 4240 by 791, we get 5 and a remainder of 285.
The number 5 becomes the next digit in our result. 
Result so far: 49513.21365
If we take 3955 away from 4240, we end up with 285.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2850, and continue the process.

Going ahead to step 14:
When dividing 2850 by 791, we get 3 with a remainder of 477.
The number 3 becomes the next digit in our result. 
Result so far: 49513.213653
The remainder is 477 after subtracting 2373 from 2850.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4770, and continue the process.

Advancing to step 15:
The number 791 fits into 4770 6 times, leaving a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 49513.2136536
Subtracting 4746 from 4770 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 16:
791 can be fit into 240 0 times, resulting in a remainder of 240.
The number 0 becomes the next digit in our result. 
Result so far: 49513.2136536
Deduct 0 from 240 and we're left with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

In conclusion, the division gives 49513.2136536 with a balance of 2.4e-07.