Computer Sciences > GATE 2025 SET-1 > Combinatorics
Let S be the set of all ternary strings defined over the alphabet {a, b, c}. Consider all strings in S that contain at least one occurrence of two consecutive symbols, that is, "aa", "bb" or "cc". The number of such strings of length 5 that are possible is ______ (Answer in integer)
Correct : 153
Similar Questions
A pennant is a sequence of numbers, each number being 1 or 2. An n-pennant is a sequence of numbers with sum equal to n. For example, (1, 1, 2) is a 4-pennant....
Consider 4 Γ 4 matrices with their elements from {π, π}. The number of such
matrices with even number of πs in every row and every column is
A palindrome is a word that reads the same forwards and backwards. In a game
of words, a player has the following two plates painted with letters.
From...
Total Unique Visitors
Loading......