What is the number of dec-strings d1,…,dn of length n such that d1d2≠00. In other words, what is the number of dec-strings of length n that don't begin with 00?
So the solution provided in the textbook states that its 99*(10^(n-2)) which I don't quite understand.
I know that the number of dec-strings of length n is 10^n. And I understand that to calculate the possibilities for the remaining digits past the first two, it'd be 10^(n-2). But I don't understand where the 99 came from.
Should it not be 9 * 9 * (10^(n-2)) since there's 9 choices for the first digit {1, 2,...9) and 9 choices for the second digit as well since it just can't start with 0? I'm confused as to where 99 came from and would appreciate some clarification.
So the solution provided in the textbook states that its 99*(10^(n-2)) which I don't quite understand.
I know that the number of dec-strings of length n is 10^n. And I understand that to calculate the possibilities for the remaining digits past the first two, it'd be 10^(n-2). But I don't understand where the 99 came from.
Should it not be 9 * 9 * (10^(n-2)) since there's 9 choices for the first digit {1, 2,...9) and 9 choices for the second digit as well since it just can't start with 0? I'm confused as to where 99 came from and would appreciate some clarification.