Let's divide 777858 by 31
We want to figure out the number of times 777858 can be divided by 31.

Let's proceed to step 1:
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: 0.0
If we subtract 0 from 7, we get 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 31

Let's proceed to step 2:
31 goes into 77 2 times with a remainder of 15.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 15 after subtracting 62 from 77.
Append the next digit (7) from the dividend to 15 and continue with: 157 / 31

Going ahead to step 3:
When dividing 157 by 31, we get 5 with a remainder of 2.
The next digit of our result is 5. 
Result so far: 25.0
Subtract 155 from 157 to get 2.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 31

Going ahead to step 4:
The number 31 fits into 28 0 times, leaving a remainder of 28.
Use 0 as the next digit of our solution. 
Result so far: 250.0
Subtracting 0 from 28 leaves us with 28.
Fetch the next digit (5) from the dividend, attach it to 28 and continue: 285 / 31

Moving on to step 5:
The number 31 fits into 285 9 times, leaving a remainder of 6.
The number 9 becomes the next digit in our result. 
Result so far: 2509.0
The remainder is 6 after subtracting 279 from 285.
Take the next digit (8) from the dividend and append it to 6, then repeat: 68 / 31

On to step 6:
The number 31 fits into 68 2 times, leaving a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 25092.0
Subtracting 62 from 68 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
When dividing 60 by 31, we get 1 with a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 25092.1
Subtracting 31 from 60 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 8:
290 divided by 31 is 9 with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 25092.19
If we subtract 279 from 290, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 9:
31 goes into 110 3 times with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 25092.193
If we take 93 away from 110, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 10:
31 goes into 170 5 times with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 25092.1935
Subtract 155 from 170 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 11:
150 divided by 31 is 4 with a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 25092.19354
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 12:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 25092.193548
Deduct 248 from 260 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 13:
31 can be fit into 120 3 times, resulting in a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 25092.1935483
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 14:
If we divide 270 by 31, we get 8 and a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 25092.19354838
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Our division results in 25092.19354838 with a remaining 2.2e-08.