We look at the division of 987316 by 7 
We're looking to find how many times 7 goes into 987316.

Going ahead to step 1:
When dividing 9 by 7, we get 1 with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 7 from 9 leaves us with 2.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 7

Moving on to step 2:
7 goes into 28 4 times with a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
Subtracting 28 from 28 leaves us with 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 7

Let's proceed to step 3:
The number 7 fits into 7 1 times, leaving a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 141.0
If we subtract 7 from 7, we get 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 7

Let's proceed to step 4:
7 goes into 3 0 times with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 1410.0
Subtract 0 from 3 to get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 7

Moving on to step 5:
7 can be fit into 31 4 times, resulting in a remainder of 3.
Write down 4 as next digit of the result. 
Result so far: 14104.0
If we take 28 away from 31, we end up with 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 7

On to step 6:
36 divided by 7 is 5 with a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 141045.0
Subtract 35 from 36 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
The number 7 fits into 10 1 times, leaving a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 141045.1
Deduct 7 from 10 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 8:
7 goes into 30 4 times with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 141045.14
If we take 28 away from 30, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 9:
7 can be fit into 20 2 times, resulting in a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 141045.142
If we subtract 14 from 20, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 10:
7 can be fit into 60 8 times, resulting in a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 141045.1428
Subtracting 56 from 60 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 11:
40 divided by 7 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 141045.14285
If we take 35 away from 40, 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.

Moving on to step 12:
50 divided by 7 is 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 141045.142857
Deduct 49 from 50 and we're left 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.

Going ahead to step 13:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 141045.1428571
Deduct 7 from 10 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 14:
When dividing 30 by 7, we get 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 141045.14285714
Deduct 28 from 30 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

After the division, we end up with 141045.14285714 and a remainder of 2e-09.