We're dividing 39652981 by 798 
We want to divide 39652981 by 798.

On to step 1:
3 divided by 798 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 798

Moving on to step 2:
798 can be fit into 39 0 times, resulting in a remainder of 39.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 39 and we're left with 39.
Bring next digit (6) of the dividend behind the 39 and repeat the process: 396 / 798

Moving on to step 3:
798 can be fit into 396 0 times, resulting in a remainder of 396.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 396 to get 396.
Append the next digit (5) from the dividend to 396 and continue with: 3965 / 798

On to step 4:
798 goes into 3965 4 times with a remainder of 773.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
If we take 3192 away from 3965, we end up with 773.
Include the next digit (2) from the dividend after 773, then repeat: 7732 / 798

Step 5:
When dividing 7732 by 798, we get 9 with a remainder of 550.
The next digit of our result is 9. 
Result so far: 49.0
The remainder is 550 after subtracting 7182 from 7732.
Take the next digit (9) from the dividend and append it to 550, then repeat: 5509 / 798

Advancing to step 6:
798 can be fit into 5509 6 times, resulting in a remainder of 721.
Record the quotient 6 as the next digit in the result. 
Result so far: 496.0
If we take 4788 away from 5509, we end up with 721.
Grab the next digit (8) from the dividend, add it to 721, then carry on: 7218 / 798

Advancing to step 7:
The number 798 fits into 7218 9 times, leaving a remainder of 36.
The next digit of our result is 9. 
Result so far: 4969.0
The remainder is 36 after subtracting 7182 from 7218.
Take the next digit (1) from the dividend and append it to 36, then repeat: 361 / 798

Moving on to step 8:
The number 798 fits into 361 0 times, leaving a remainder of 361.
The next digit of our result is 0. 
Result so far: 49690.0
Deduct 0 from 361 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 9:
If we divide 3610 by 798, we get 4 and a remainder of 418.
Use 4 as the next digit of our solution. 
Result so far: 49690.4
The remainder is 418 after subtracting 3192 from 3610.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4180, and continue the process.

Advancing to step 10:
798 goes into 4180 5 times with a remainder of 190.
Record the quotient 5 as the next digit in the result. 
Result so far: 49690.45
Subtract 3990 from 4180 to get 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Going ahead to step 11:
When dividing 1900 by 798, we get 2 with a remainder of 304.
Record the quotient 2 as the next digit in the result. 
Result so far: 49690.452
If we take 1596 away from 1900, we end up with 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Step 12:
3040 divided by 798 is 3 with a remainder of 646.
Write down 3 as next digit of the result. 
Result so far: 49690.4523
Subtracting 2394 from 3040 leaves us with 646.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6460, and continue the process.

Moving on to step 13:
When dividing 6460 by 798, we get 8 with a remainder of 76.
The number 8 becomes the next digit in our result. 
Result so far: 49690.45238
The remainder is 76 after subtracting 6384 from 6460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

On to step 14:
When dividing 760 by 798, we get 0 with a remainder of 760.
Use 0 as the next digit of our solution. 
Result so far: 49690.45238
Deduct 0 from 760 and we're left with 760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7600, and continue the process.

Moving on to step 15:
When dividing 7600 by 798, we get 9 with a remainder of 418.
Use 9 as the next digit of our solution. 
Result so far: 49690.4523809
Subtract 7182 from 7600 to get 418.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4180, and continue the process.

Moving on to step 16:
798 goes into 4180 5 times with a remainder of 190.
Record the quotient 5 as the next digit in the result. 
Result so far: 49690.45238095
The remainder is 190 after subtracting 3990 from 4180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

In conclusion, the division gives 49690.45238095 with a balance of 1.9e-07.