Let's divide 787219 by 31
We want to divide 787219 by 31.

Going ahead to step 1:
When dividing 7 by 31, we get 0 with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Take the next digit (8) from the dividend and append it to 7, then repeat: 78 / 31

Step 2:
The number 31 fits into 78 2 times, leaving a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 62 from 78, we get 16.
Include the next digit (7) from the dividend after 16, then repeat: 167 / 31

Advancing to step 3:
31 can be fit into 167 5 times, resulting in a remainder of 12.
The next digit of our result is 5. 
Result so far: 25.0
If we subtract 155 from 167, we get 12.
Grab the next digit (2) from the dividend, add it to 12, then carry on: 122 / 31

Advancing to step 4:
The number 31 fits into 122 3 times, leaving a remainder of 29.
Write down 3 as next digit of the result. 
Result so far: 253.0
If we subtract 93 from 122, we get 29.
Append the next digit (1) from the dividend to 29 and continue with: 291 / 31

On to step 5:
The number 31 fits into 291 9 times, leaving a remainder of 12.
Record the quotient 9 as the next digit in the result. 
Result so far: 2539.0
Subtract 279 from 291 to get 12.
Take the next digit (9) from the dividend and append it to 12, then repeat: 129 / 31

Moving on to step 6:
31 goes into 129 4 times with a remainder of 5.
Write down 4 as next digit of the result. 
Result so far: 25394.0
If we take 124 away from 129, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
50 divided by 31 is 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 25394.1
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 8:
When dividing 190 by 31, we get 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 25394.16
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 9:
31 can be fit into 40 1 times, resulting in a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 25394.161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 10:
31 goes into 90 2 times with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 25394.1612
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 11:
When dividing 280 by 31, we get 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 25394.16129
If we take 279 away from 280, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 12:
31 goes into 10 0 times with a remainder of 10.
The next digit of our result is 0. 
Result so far: 25394.16129
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 13:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 25394.1612903
Deduct 93 from 100 and we're left 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.

Step 14:
If we divide 70 by 31, we get 2 and a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 25394.16129032
Deduct 62 from 70 and we're left 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.

The quotient of the division is 25394.16129032, and the remainder is 8e-09.