Consider a sequence of length n consisting of only three distinct characters: A, B, and C. Let's say a sequence is "beautiful" if it does not contain any consecutive subsequence of "ABC" in it. For example: AAB, BCA, ACB, CCCA are beautiful sequences. AABC, CABC, ABCAA are not beautiful sequences. For a given n, find the number of "beautiful" sequences of length n.

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter3: Linear And Nonlinear Functions
Section3.6: Arithmetic Sequences As Linear Functions
Problem 2CYU
icon
Related questions
Question

Consider a sequence of length n consisting of only three distinct characters: A, B, and C. Let's say a sequence is "beautiful" if it does not contain any consecutive subsequence of "ABC" in it.

For example: AAB, BCA, ACB, CCCA are beautiful sequences. AABC, CABC, ABCAA are not beautiful sequences.

For a given n, find the number of "beautiful" sequences of length n.

Expert Solution
steps

Step by step

Solved in 3 steps with 31 images

Blurred answer
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
College Algebra
College Algebra
Algebra
ISBN:
9781938168383
Author:
Jay Abramson
Publisher:
OpenStax
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
College Algebra
College Algebra
Algebra
ISBN:
9781337282291
Author:
Ron Larson
Publisher:
Cengage Learning
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning