We divide 76171 by 8
The aim is to understand the frequency of 8 in 76171.

Going ahead to step 1:
8 goes into 7 0 times with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Take the next digit (6) from the dividend and append it to 7, then repeat: 76 / 8

Let's proceed to step 2:
The number 8 fits into 76 9 times, leaving a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 9.0
Subtract 72 from 76 to get 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 8

Going ahead to step 3:
41 divided by 8 is 5 with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 95.0
The remainder is 1 after subtracting 40 from 41.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 8

On to step 4:
The number 8 fits into 17 2 times, leaving a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 952.0
The remainder is 1 after subtracting 16 from 17.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 8

Let's proceed to step 5:
8 goes into 11 1 times with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 9521.0
The remainder is 3 after subtracting 8 from 11.
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 6:
If we divide 30 by 8, we get 3 and a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 9521.3
The remainder is 6 after subtracting 24 from 30.
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 7:
The number 8 fits into 60 7 times, leaving a remainder of 4.
The number 7 becomes the next digit in our result. 
Result so far: 9521.37
If we subtract 56 from 60, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 8:
When dividing 40 by 8, we get 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 9521.375
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.

Advancing to step 9:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 9521.375
Subtract 0 from 0 to 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.

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

After the division, we end up with 9521.375 and a remainder of 0.0.