We're dividing 520057 by 8 
The aim is to understand the frequency of 8 in 520057.

Step 1:
If we divide 5 by 8, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (2) from the dividend, add it to 5, then carry on: 52 / 8

Advancing to step 2:
The number 8 fits into 52 6 times, leaving a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 6.0
If we take 48 away from 52, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 8

Step 3:
8 can be fit into 40 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 65.0
The remainder is 0 after subtracting 40 from 40.
Fetch the next digit (0) from the dividend, attach it to 0 and continue: 0 / 8

Step 4:
0 divided by 8 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 650.0
The remainder is 0 after subtracting 0 from 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 8

Going ahead to step 5:
If we divide 5 by 8, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 6500.0
If we take 0 away from 5, we end up with 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 8

Going ahead to step 6:
57 divided by 8 is 7 with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 65007.0
Deduct 56 from 57 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.

Step 7:
10 divided by 8 is 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 65007.1
If we take 8 away from 10, 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.

Advancing to step 8:
The number 8 fits into 20 2 times, leaving a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 65007.12
Deduct 16 from 20 and we're left 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.

On to step 9:
If we divide 40 by 8, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 65007.125
If we subtract 40 from 40, 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.

Moving on to step 10:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 65007.125
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.

On to step 11:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 65007.125
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.

The quotient of the division is 65007.125, and the remainder is 0.0.