We look at the division of 471257 by 7 
The aim is to understand the frequency of 7 in 471257.

On to step 1:
The number 7 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 7

Let's proceed to step 2:
When dividing 47 by 7, we get 6 with a remainder of 5.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
The remainder is 5 after subtracting 42 from 47.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 7

Let's proceed to step 3:
The number 7 fits into 51 7 times, leaving a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 67.0
If we subtract 49 from 51, we get 2.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 7

Advancing to step 4:
If we divide 22 by 7, we get 3 and a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 673.0
Subtract 21 from 22 to get 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 7

On to step 5:
7 can be fit into 15 2 times, resulting in a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 6732.0
If we subtract 14 from 15, we get 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 7

On to step 6:
7 goes into 17 2 times with a remainder of 3.
The number 2 becomes the next digit in our result. 
Result so far: 67322.0
If we take 14 away from 17, we end up 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 7:
The number 7 fits into 30 4 times, leaving a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 67322.4
Subtract 28 from 30 to get 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 8:
7 goes into 20 2 times with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 67322.42
Subtract 14 from 20 to 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.

Step 9:
7 can be fit into 60 8 times, resulting in a remainder of 4.
The next digit of our result is 8. 
Result so far: 67322.428
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.

Let's proceed to step 10:
40 divided by 7 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 67322.4285
Subtract 35 from 40 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 11:
7 goes into 50 7 times with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 67322.42857
If we take 49 away from 50, we end up 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.

Moving on to step 12:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 67322.428571
Subtracting 7 from 10 leaves us 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.

On to step 13:
If we divide 30 by 7, we get 4 and a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 67322.4285714
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.

Moving on to step 14:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 67322.42857142
The remainder is 6 after subtracting 14 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Our division results in 67322.42857142 with a remaining 6e-09.