Password of length $10$ to be made from letters ($a$-$z$) and numbers ($0$-$9$). No of passwords of length $10$ that can be made with $3$ letters and $7$ digits, and at most one $9$.
Is $26^3 \times 9^6 \times 1$ (for one $9$) $+ 26^3 \times 9^7$(for no $9$'s) correct?
You can either have no 9s at all: $$ \binom{10}{3} 26^3 9^7 $$ or exactly one, in one of 10 positions in the password: $$ \binom{10}{3}26^3 9^6 \times 10 $$