Counting Problem : A code consists of at-most two....

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
22990atinesh
Messages
143
Reaction score
1

Homework Statement


A code consists of at-most two identical letters followed by at-most four identical digits. The code must have atleast one letter and one digit. How many distinct codes can be generated using letters A-Z and digits 1-9.

Homework Equations

The Attempt at a Solution



//One letter followed by one or more digits
##26 \times 10 + 26 \times 10 \times 10 + 26 \times 10 \times 10 \times 10 + 26 \times 10 \times 10 \times 10 \times 10 + ##

//two letters followed by one or more digits
##26 \times 26 \times 10 + 26 \times 26 \times 10 \times 10 + 26 \times 26 \times 10 \times 10 \times 10 + 26 \times 26 \times 10 \times 10 \times 10 \times 10##

But the ans is too big it doesn't matches with the result. What can be correct answer
 
on Phys.org
Your question says identical letters and digits.
So the variables in question are:
Choice of letter (26)
Number of identical letters (2)
Choice of digit (9)
Number of identical digits (4).

Doing it this way, I get an answer that is less that 2000. What are you comparing against?