31248250 divided by 798 
Let's see how many times 798 fits into 31248250.

Moving on to step 1:
When dividing 3 by 798, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 798

Step 2:
31 divided by 798 is 0 with a remainder of 31.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Take the next digit (2) from the dividend and append it to 31, then repeat: 312 / 798

Going ahead to step 3:
The number 798 fits into 312 0 times, leaving a remainder of 312.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 312, we get 312.
Append the next digit (4) from the dividend to 312 and continue with: 3124 / 798

Let's proceed to step 4:
If we divide 3124 by 798, we get 3 and a remainder of 730.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 2394 from 3124 leaves us with 730.
Grab the next digit (8) from the dividend, add it to 730, then carry on: 7308 / 798

Step 5:
If we divide 7308 by 798, we get 9 and a remainder of 126.
Put 9 as the next digit of the answer. 
Result so far: 39.0
If we take 7182 away from 7308, we end up with 126.
Include the next digit (2) from the dividend after 126, then repeat: 1262 / 798

Let's proceed to step 6:
798 can be fit into 1262 1 times, resulting in a remainder of 464.
Record the quotient 1 as the next digit in the result. 
Result so far: 391.0
Subtracting 798 from 1262 leaves us with 464.
Grab the next digit (5) from the dividend, add it to 464, then carry on: 4645 / 798

Let's proceed to step 7:
798 can be fit into 4645 5 times, resulting in a remainder of 655.
Record the quotient 5 as the next digit in the result. 
Result so far: 3915.0
Subtracting 3990 from 4645 leaves us with 655.
Grab the next digit (0) from the dividend, add it to 655, then carry on: 6550 / 798

Moving on to step 8:
798 goes into 6550 8 times with a remainder of 166.
Put 8 as the next digit of the answer. 
Result so far: 39158.0
The remainder is 166 after subtracting 6384 from 6550.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1660, and continue the process.

Advancing to step 9:
When dividing 1660 by 798, we get 2 with a remainder of 64.
Write down 2 as next digit of the result. 
Result so far: 39158.2
If we take 1596 away from 1660, we end up with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Let's proceed to step 10:
798 goes into 640 0 times with a remainder of 640.
The number 0 becomes the next digit in our result. 
Result so far: 39158.2
Subtract 0 from 640 to get 640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6400, and continue the process.

Let's proceed to step 11:
798 can be fit into 6400 8 times, resulting in a remainder of 16.
Put 8 as the next digit of the answer. 
Result so far: 39158.208
If we subtract 6384 from 6400, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 12:
160 divided by 798 is 0 with a remainder of 160.
The number 0 becomes the next digit in our result. 
Result so far: 39158.208
If we subtract 0 from 160, we get 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Moving on to step 13:
When dividing 1600 by 798, we get 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 39158.20802
If we take 1596 away from 1600, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 14:
If we divide 40 by 798, we get 0 and a remainder of 40.
The next digit of our result is 0. 
Result so far: 39158.20802
If we subtract 0 from 40, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 15:
When dividing 400 by 798, we get 0 with a remainder of 400.
Record the quotient 0 as the next digit in the result. 
Result so far: 39158.20802
If we subtract 0 from 400, we get 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

After the division, we end up with 39158.20802 and a remainder of 4e-06.