Let's divide 583166 by 7
The aim is to understand the frequency of 7 in 583166.

Let's proceed to step 1:
7 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 7

Step 2:
The number 7 fits into 58 8 times, leaving a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Deduct 56 from 58 and we're left with 2.
Take the next digit (3) from the dividend and append it to 2, then repeat: 23 / 7

Step 3:
When dividing 23 by 7, we get 3 with a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 83.0
Subtracting 21 from 23 leaves us with 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 7

On to step 4:
If we divide 21 by 7, we get 3 and a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 833.0
If we subtract 21 from 21, we get 0.
Include the next digit (6) from the dividend after 0, then repeat: 6 / 7

Let's proceed to step 5:
The number 7 fits into 6 0 times, leaving a remainder of 6.
The next digit of our result is 0. 
Result so far: 8330.0
Deduct 0 from 6 and we're left with 6.
Include the next digit (6) from the dividend after 6, then repeat: 66 / 7

Moving on to step 6:
The number 7 fits into 66 9 times, leaving a remainder of 3.
The number 9 becomes the next digit in our result. 
Result so far: 83309.0
If we take 63 away from 66, 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.

Let's proceed to step 7:
If we divide 30 by 7, we get 4 and a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 83309.4
Subtracting 28 from 30 leaves us 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.

Going ahead to step 8:
7 goes into 20 2 times with a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 83309.42
If we subtract 14 from 20, 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.

Advancing to step 9:
60 divided by 7 is 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 83309.428
The remainder is 4 after subtracting 56 from 60.
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:
7 goes into 40 5 times with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 83309.4285
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.

Moving on to step 11:
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: 83309.42857
The remainder is 1 after subtracting 49 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 12:
7 goes into 10 1 times with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 83309.428571
If we take 7 away from 10, 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.

Moving on to step 13:
When dividing 30 by 7, we get 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 83309.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.

Let's proceed to step 14:
If we divide 20 by 7, we get 2 and a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 83309.42857142
If we subtract 14 from 20, 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.

The final outcome is 83309.42857142, with a leftover of 6e-09.