521172 divided by 8 
The aim is to understand the frequency of 8 in 521172.

Going ahead to step 1:
5 divided by 8 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (2) from the dividend to 5 and continue with: 52 / 8

Let's proceed to step 2:
52 divided by 8 is 6 with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
If we subtract 48 from 52, we get 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 8

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

Moving on to step 4:
11 divided by 8 is 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 651.0
The remainder is 3 after subtracting 8 from 11.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 8

On to step 5:
8 goes into 37 4 times with a remainder of 5.
The number 4 becomes the next digit in our result. 
Result so far: 6514.0
Subtracting 32 from 37 leaves us with 5.
Include the next digit (2) from the dividend after 5, then repeat: 52 / 8

Let's proceed to step 6:
8 can be fit into 52 6 times, resulting in a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 65146.0
Subtracting 48 from 52 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.

Advancing to step 7:
When dividing 40 by 8, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 65146.5
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.

Going ahead to step 8:
8 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 65146.5
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.

Advancing to step 9:
8 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 65146.5
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.

Our division results in 65146.5 with a remaining 0.0.