31050765 ÷ 797 
We want to divide 31050765 by 797.

Going ahead to step 1:
If we divide 3 by 797, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 797

On to step 2:
31 divided by 797 is 0 with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Fetch the next digit (0) from the dividend, attach it to 31 and continue: 310 / 797

On to step 3:
If we divide 310 by 797, we get 0 and a remainder of 310.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 310 leaves us with 310.
Include the next digit (5) from the dividend after 310, then repeat: 3105 / 797

Going ahead to step 4:
3105 divided by 797 is 3 with a remainder of 714.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 2391 from 3105, we get 714.
Bring next digit (0) of the dividend behind the 714 and repeat the process: 7140 / 797

Advancing to step 5:
When dividing 7140 by 797, we get 8 with a remainder of 764.
Record the quotient 8 as the next digit in the result. 
Result so far: 38.0
Deduct 6376 from 7140 and we're left with 764.
Grab the next digit (7) from the dividend, add it to 764, then carry on: 7647 / 797

Moving on to step 6:
797 goes into 7647 9 times with a remainder of 474.
The number 9 becomes the next digit in our result. 
Result so far: 389.0
Subtract 7173 from 7647 to get 474.
Bring next digit (6) of the dividend behind the 474 and repeat the process: 4746 / 797

Moving on to step 7:
When dividing 4746 by 797, we get 5 with a remainder of 761.
Put 5 as the next digit of the answer. 
Result so far: 3895.0
The remainder is 761 after subtracting 3985 from 4746.
Include the next digit (5) from the dividend after 761, then repeat: 7615 / 797

Moving on to step 8:
797 goes into 7615 9 times with a remainder of 442.
Use 9 as the next digit of our solution. 
Result so far: 38959.0
Subtracting 7173 from 7615 leaves us with 442.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4420, and continue the process.

On to step 9:
4420 divided by 797 is 5 with a remainder of 435.
Use 5 as the next digit of our solution. 
Result so far: 38959.5
Subtracting 3985 from 4420 leaves us with 435.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4350, and continue the process.

Advancing to step 10:
797 goes into 4350 5 times with a remainder of 365.
The next digit of our result is 5. 
Result so far: 38959.55
Subtract 3985 from 4350 to get 365.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3650, and continue the process.

The final result is 38959.55 with a remainder of 0.365.