Answer :
If the first number is not allowed to be "0", we will have that the aviable numbers will be:
[tex]1,2,3,4,5,6,7,8,9[/tex]So, we will have 9 posibilites, now:
First, we will have that the biggest number of 7 digits that we will be able to write will be 9 999 999 and the smallest is 1 000 000.
Now, we will have that the total number of aviable values is:
[tex]9999999-1000000=8999999[/tex]Then, the total number of possible is:
[tex]8.999999\cdot10^6[/tex]