We divide 511645 by 7
The aim is to understand the frequency of 7 in 511645.

Step 1:
When dividing 5 by 7, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 7

Moving on to step 2:
If we divide 51 by 7, we get 7 and a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 7.0
The remainder is 2 after subtracting 49 from 51.
Take the next digit (1) from the dividend and append it to 2, then repeat: 21 / 7

Going ahead to step 3:
The number 7 fits into 21 3 times, leaving a remainder of 0.
Put 3 as the next digit of the answer. 
Result so far: 73.0
Subtracting 21 from 21 leaves us with 0.
Bring next digit (6) of the dividend behind the 0 and repeat the process: 6 / 7

Advancing to step 4:
6 divided by 7 is 0 with a remainder of 6.
The next digit of our result is 0. 
Result so far: 730.0
Subtracting 0 from 6 leaves us with 6.
Take the next digit (4) from the dividend and append it to 6, then repeat: 64 / 7

Step 5:
If we divide 64 by 7, we get 9 and a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 7309.0
The remainder is 1 after subtracting 63 from 64.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 7

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

Let's proceed to step 7:
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: 73092.1
If we subtract 7 from 10, we 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.

Advancing to step 8:
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: 73092.14
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.

Advancing to step 9:
20 divided by 7 is 2 with a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 73092.142
Subtracting 14 from 20 leaves us 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.

Step 10:
60 divided by 7 is 8 with a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 73092.1428
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.

Let's proceed to step 11:
The number 7 fits into 40 5 times, leaving a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 73092.14285
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.

Step 12:
If we divide 50 by 7, we get 7 and a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 73092.142857
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.

Going ahead to step 13:
The number 7 fits into 10 1 times, leaving a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 73092.1428571
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.

Moving on to step 14:
When dividing 30 by 7, we get 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 73092.14285714
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.

In conclusion, the division gives 73092.14285714 with a balance of 2e-09.