Let's divide 971986 by 8
The aim is to understand the frequency of 8 in 971986.

On to step 1:
When dividing 9 by 8, we get 1 with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 1 after subtracting 8 from 9.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 8

Moving on to step 2:
17 divided by 8 is 2 with a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Subtracting 16 from 17 leaves us with 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 8

Going ahead to step 3:
8 can be fit into 11 1 times, resulting in a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 121.0
If we subtract 8 from 11, we get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 8

Let's proceed to step 4:
8 goes into 39 4 times with a remainder of 7.
The next digit of our result is 4. 
Result so far: 1214.0
If we take 32 away from 39, we end up with 7.
Include the next digit (8) from the dividend after 7, then repeat: 78 / 8

Moving on to step 5:
The number 8 fits into 78 9 times, leaving a remainder of 6.
The number 9 becomes the next digit in our result. 
Result so far: 12149.0
If we subtract 72 from 78, we get 6.
Grab the next digit (6) from the dividend, add it to 6, then carry on: 66 / 8

Let's proceed to step 6:
8 can be fit into 66 8 times, resulting in a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 121498.0
If we take 64 away from 66, 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.

On to step 7:
If we divide 20 by 8, we get 2 and a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 121498.2
The remainder is 4 after subtracting 16 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 8:
40 divided by 8 is 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 121498.25
If we take 40 away from 40, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 9:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 121498.25
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
If we divide 0 by 8, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 121498.25
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 121498.25 with a remaining 0.0.