839797 divided by 31 
Our goal is to divide 839797 by 31.

Moving on to step 1:
31 goes into 8 0 times with a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Grab the next digit (3) from the dividend, add it to 8, then carry on: 83 / 31

Let's proceed to step 2:
31 goes into 83 2 times with a remainder of 21.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 62 from 83 leaves us with 21.
Bring next digit (9) of the dividend behind the 21 and repeat the process: 219 / 31

Step 3:
If we divide 219 by 31, we get 7 and a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 27.0
Subtracting 217 from 219 leaves us with 2.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 31

Step 4:
27 divided by 31 is 0 with a remainder of 27.
Put 0 as the next digit of the answer. 
Result so far: 270.0
If we subtract 0 from 27, we get 27.
Grab the next digit (9) from the dividend, add it to 27, then carry on: 279 / 31

On to step 5:
When dividing 279 by 31, we get 9 with a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 2709.0
If we subtract 279 from 279, we get 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 31

Going ahead to step 6:
The number 31 fits into 7 0 times, leaving a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 27090.0
If we take 0 away from 7, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 7:
31 can be fit into 70 2 times, resulting in a remainder of 8.
The next digit of our result is 2. 
Result so far: 27090.2
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 8:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 27090.22
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

In conclusion, the division gives 27090.22 with a balance of 0.018.