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

Advancing to step 1:
When dividing 7 by 31, we get 0 with a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 31

Step 2:
78 divided by 31 is 2 with a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 62 away from 78, we end up with 16.
Grab the next digit (3) from the dividend, add it to 16, then carry on: 163 / 31

Step 3:
The number 31 fits into 163 5 times, leaving a remainder of 8.
Write down 5 as next digit of the result. 
Result so far: 25.0
If we subtract 155 from 163, we get 8.
Take the next digit (6) from the dividend and append it to 8, then repeat: 86 / 31

Going ahead to step 4:
If we divide 86 by 31, we get 2 and a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 252.0
Subtract 62 from 86 to get 24.
Take the next digit (6) from the dividend and append it to 24, then repeat: 246 / 31

Advancing to step 5:
246 divided by 31 is 7 with a remainder of 29.
The next digit of our result is 7. 
Result so far: 2527.0
Subtract 217 from 246 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 6:
If we divide 290 by 31, we get 9 and a remainder of 11.
The next digit of our result is 9. 
Result so far: 2527.9
Deduct 279 from 290 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 7:
110 divided by 31 is 3 with a remainder of 17.
Use 3 as the next digit of our solution. 
Result so far: 2527.93
Deduct 93 from 110 and we're left 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 8:
31 goes into 170 5 times with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 2527.935
Deduct 155 from 170 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 9:
The number 31 fits into 150 4 times, leaving a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 2527.9354
If we take 124 away from 150, we end up 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.

Advancing to step 10:
When dividing 260 by 31, we get 8 with a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 2527.93548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 11:
If we divide 120 by 31, we get 3 and a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 2527.935483
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.

Going ahead to step 12:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 2527.9354838
Subtract 248 from 270 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 13:
31 can be fit into 220 7 times, resulting in a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 2527.93548387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The quotient of the division is 2527.93548387, and the remainder is 3e-09.