Let ๐‘† be the set of all ternary strings defined over the alphabet \(\{๐‘Ž, ๐‘,โ€ฆ

GATE ยท 2025 ยท CS ยท Set 1 ยท Computer Science & IT

Let ๐‘† be the set of all ternary strings defined over the alphabet {๐‘Ž,๐‘,๐‘}\{๐‘Ž, ๐‘, ๐‘\}. Consider all strings inย SS 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)

Attempted by 75 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lessonโ€ฆ