GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2025 set1

GATE 2025 set1 · CS · NAT · 1 mark · Engineering Mathematics › Discrete Mathematics

GATE 2025 set1 Computer Science and Information Technology question: Let S be the set of all ternary strings defined over the alphabet \ a, b, c\ . Consider…

Let be the set of all ternary strings defined over the alphabet . Consider all strings in 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)

Show answer

Official answer: 195

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion