We're dividing 316582 by 78 
We want to figure out the number of times 316582 can be divided by 78.

Step 1:
When dividing 3 by 78, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 78

Let's proceed to step 2:
If we divide 31 by 78, we get 0 and 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.
Include the next digit (6) from the dividend after 31, then repeat: 316 / 78

On to step 3:
If we divide 316 by 78, we get 4 and a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtracting 312 from 316 leaves us with 4.
Append the next digit (5) from the dividend to 4 and continue with: 45 / 78

Advancing to step 4:
78 can be fit into 45 0 times, resulting in a remainder of 45.
Use 0 as the next digit of our solution. 
Result so far: 40.0
The remainder is 45 after subtracting 0 from 45.
Take the next digit (8) from the dividend and append it to 45, then repeat: 458 / 78

Advancing to step 5:
When dividing 458 by 78, we get 5 with a remainder of 68.
Record the quotient 5 as the next digit in the result. 
Result so far: 405.0
If we subtract 390 from 458, we get 68.
Fetch the next digit (2) from the dividend, attach it to 68 and continue: 682 / 78

Step 6:
The number 78 fits into 682 8 times, leaving a remainder of 58.
Record the quotient 8 as the next digit in the result. 
Result so far: 4058.0
Subtract 624 from 682 to get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Advancing to step 7:
When dividing 580 by 78, we get 7 with a remainder of 34.
Use 7 as the next digit of our solution. 
Result so far: 4058.7
Subtracting 546 from 580 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 8:
78 can be fit into 340 4 times, resulting in a remainder of 28.
Put 4 as the next digit of the answer. 
Result so far: 4058.74
Deduct 312 from 340 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.

On to step 9:
78 goes into 280 3 times with a remainder of 46.
The number 3 becomes the next digit in our result. 
Result so far: 4058.743
If we take 234 away from 280, we end up with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Step 10:
If we divide 460 by 78, we get 5 and a remainder of 70.
The next digit of our result is 5. 
Result so far: 4058.7435
Subtract 390 from 460 to get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Let's proceed to step 11:
If we divide 700 by 78, we get 8 and a remainder of 76.
The number 8 becomes the next digit in our result. 
Result so far: 4058.74358
The remainder is 76 after subtracting 624 from 700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

On to step 12:
When dividing 760 by 78, we get 9 with a remainder of 58.
Write down 9 as next digit of the result. 
Result so far: 4058.743589
Subtracting 702 from 760 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Let's proceed to step 13:
The number 78 fits into 580 7 times, leaving a remainder of 34.
Record the quotient 7 as the next digit in the result. 
Result so far: 4058.7435897
Subtracting 546 from 580 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 14:
340 divided by 78 is 4 with a remainder of 28.
The number 4 becomes the next digit in our result. 
Result so far: 4058.74358974
Deduct 312 from 340 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.

After the division, we end up with 4058.74358974 and a remainder of 2.8e-08.