How many six-digit positive integers are there in which the first and last digits are the same?
Attempt: I know the number of 6-digit integers to be $9*10^5$. The first spot can only be numbers from {1,2,..,9} which limits the numbers for the last spot to be from the same set {1,2..,9}. Would the solution then be: $9^2*10^4 $?
There are $9$ possibilities for the first digit, $10$ possibilities for the second digit, $10$ possibilities for the third digit, $10$ possibilities for the fourth digit, $10$ possibilities for the fifth digit, and $1$ possibility for the sixth digit (once the first digit is determined, so is the last). Multiply those numbers to get the answer.