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

Click For Summary
The discussion revolves around calculating the number of distinct codes that consist of at most two identical letters followed by at most four identical digits, with the requirement of having at least one letter and one digit. The initial calculations presented include combinations of letters (A-Z) and digits (1-9), but there is confusion regarding the correct approach due to the identical nature of the letters and digits. The correct interpretation emphasizes that for identical letters, the combinations should be simplified to 26 choices for letters and 9 for digits, leading to a total that is significantly lower than initially calculated. Participants highlight the need to clarify the constraints of identical characters in the code formation. The final consensus suggests that the correct answer should be less than 2000 distinct codes.
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
 
Physics news 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?
 
Two letter cases are still just 26 x 10 ... not 26 x 26 x 10 ... , since the two letters are identical.
 
22990atinesh said:
using letters A-Z and digits 1-9.
There are only 9 digits to choose from.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 52 ·
2
Replies
52
Views
6K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
2
Views
2K