All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Algorithms
Sequence of Musical Tones (Posted on 2004-12-14) Difficulty: 2 of 5
Music on the planet Alpha Lyra IV consists of only two notes, called A and B. Also, songs never include three consecutive repetitions of any sequence nor does BB ever occur. A sequence of notes can have 1 or more notes in it.

What is the longest song on Alpha Lyra IV?

See The Solution Submitted by Erik O.    
Rating: 3.8333 (6 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re(3): Proof of Infinite Length | Comment 14 of 20 |
(In reply to re(2): Proof of Infinite Length by DJ)

Your proof may shed light on why 16 is the minimum.  Simply modifying the 0/1 system to exclude all -11-s, it is easy to see that the longest possible is the following:

110101
Neither 1 or 0 can be attached to the end, because it would add an extra B at the end of the sequence below.
BAABAABABAABABAA
A can't be attached to the beginning because ABA would repeat 3 times.  B can't be attached to the end because ABAAB would repeat 3 times.

This isn't a complete proof, but it makes it a convincing argument.


  Posted by Tristan on 2004-12-16 00:41:02
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information