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

On to step 1:
When dividing 5 by 7, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 7

On to step 2:
58 divided by 7 is 8 with a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 8.0
The remainder is 2 after subtracting 56 from 58.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 7

Let's proceed to step 3:
If we divide 21 by 7, we get 3 and a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 83.0
If we subtract 21 from 21, we get 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 7

On to step 4:
The number 7 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 830.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 7

Step 5:
7 goes into 35 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 8305.0
If we subtract 35 from 35, we get 0.
Fetch the next digit (6) from the dividend, attach it to 0 and continue: 6 / 7

Advancing to step 6:
If we divide 6 by 7, we get 0 and a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 83050.0
If we subtract 0 from 6, we 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.

Moving on to step 7:
60 divided by 7 is 8 with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 83050.8
Deduct 56 from 60 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.

Going ahead to step 8:
7 goes into 40 5 times with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 83050.85
The remainder is 5 after subtracting 35 from 40.
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 9:
7 goes into 50 7 times with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 83050.857
Subtracting 49 from 50 leaves us 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.

On to step 10:
If we divide 10 by 7, we get 1 and a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 83050.8571
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 11:
When dividing 30 by 7, we get 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 83050.85714
If we take 28 away from 30, 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.

Let's proceed to step 12:
If we divide 20 by 7, we get 2 and a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 83050.857142
Deduct 14 from 20 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 13:
When dividing 60 by 7, we get 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 83050.8571428
Subtracting 56 from 60 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 14:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 83050.85714285
Subtracting 35 from 40 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Our division results in 83050.85714285 with a remaining 5e-09.