31223883 divided by 789 
Our goal is to divide 31223883 by 789.

On to step 1:
3 divided by 789 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 789

Let's proceed to step 2:
When dividing 31 by 789, we get 0 with a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Append the next digit (2) from the dividend to 31 and continue with: 312 / 789

Let's proceed to step 3:
The number 789 fits into 312 0 times, leaving a remainder of 312.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 312, we get 312.
Grab the next digit (2) from the dividend, add it to 312, then carry on: 3122 / 789

Step 4:
789 can be fit into 3122 3 times, resulting in a remainder of 755.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 2367 from 3122, we get 755.
Take the next digit (3) from the dividend and append it to 755, then repeat: 7553 / 789

On to step 5:
The number 789 fits into 7553 9 times, leaving a remainder of 452.
Use 9 as the next digit of our solution. 
Result so far: 39.0
Deduct 7101 from 7553 and we're left with 452.
Grab the next digit (8) from the dividend, add it to 452, then carry on: 4528 / 789

Going ahead to step 6:
When dividing 4528 by 789, we get 5 with a remainder of 583.
Put 5 as the next digit of the answer. 
Result so far: 395.0
Deduct 3945 from 4528 and we're left with 583.
Append the next digit (8) from the dividend to 583 and continue with: 5838 / 789

Step 7:
When dividing 5838 by 789, we get 7 with a remainder of 315.
Record the quotient 7 as the next digit in the result. 
Result so far: 3957.0
The remainder is 315 after subtracting 5523 from 5838.
Append the next digit (3) from the dividend to 315 and continue with: 3153 / 789

Moving on to step 8:
789 goes into 3153 3 times with a remainder of 786.
The next digit of our result is 3. 
Result so far: 39573.0
The remainder is 786 after subtracting 2367 from 3153.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7860, and continue the process.

On to step 9:
The number 789 fits into 7860 9 times, leaving a remainder of 759.
Record the quotient 9 as the next digit in the result. 
Result so far: 39573.9
Deduct 7101 from 7860 and we're left with 759.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7590, and continue the process.

On to step 10:
789 can be fit into 7590 9 times, resulting in a remainder of 489.
The number 9 becomes the next digit in our result. 
Result so far: 39573.99
If we take 7101 away from 7590, we end up with 489.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4890, and continue the process.

The quotient of the division is 39573.99, and the remainder is 0.489.