We're dividing 78995977 by 31 
We want to divide 78995977 by 31.

Moving on to step 1:
The number 31 fits into 7 0 times, leaving a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Take the next digit (8) from the dividend and append it to 7, then repeat: 78 / 31

Step 2:
If we divide 78 by 31, we get 2 and a remainder of 16.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 62 from 78 to get 16.
Take the next digit (9) from the dividend and append it to 16, then repeat: 169 / 31

Advancing to step 3:
169 divided by 31 is 5 with a remainder of 14.
Record the quotient 5 as the next digit in the result. 
Result so far: 25.0
Subtracting 155 from 169 leaves us with 14.
Bring next digit (9) of the dividend behind the 14 and repeat the process: 149 / 31

Step 4:
149 divided by 31 is 4 with a remainder of 25.
Record the quotient 4 as the next digit in the result. 
Result so far: 254.0
If we take 124 away from 149, we end up with 25.
Fetch the next digit (5) from the dividend, attach it to 25 and continue: 255 / 31

Advancing to step 5:
255 divided by 31 is 8 with a remainder of 7.
The next digit of our result is 8. 
Result so far: 2548.0
If we subtract 248 from 255, we get 7.
Include the next digit (9) from the dividend after 7, then repeat: 79 / 31

Advancing to step 6:
31 can be fit into 79 2 times, resulting in a remainder of 17.
Use 2 as the next digit of our solution. 
Result so far: 25482.0
If we subtract 62 from 79, we get 17.
Grab the next digit (7) from the dividend, add it to 17, then carry on: 177 / 31

Advancing to step 7:
The number 31 fits into 177 5 times, leaving a remainder of 22.
Put 5 as the next digit of the answer. 
Result so far: 254825.0
Subtract 155 from 177 to get 22.
Grab the next digit (7) from the dividend, add it to 22, then carry on: 227 / 31

On to step 8:
227 divided by 31 is 7 with a remainder of 10.
The number 7 becomes the next digit in our result. 
Result so far: 2548257.0
If we take 217 away from 227, we end up 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.

Moving on to step 9:
If we divide 100 by 31, we get 3 and a remainder of 7.
The next digit of our result is 3. 
Result so far: 2548257.3
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.

On to step 10:
31 goes into 70 2 times with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 2548257.32
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 11:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 2548257.322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final result is 2548257.322 with a remainder of 0.0018.