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: computer solution | Comment 5 of 20 |
(In reply to computer solution by Charlie)

If the program is modified to consider three a's in a row to be allowable, the program generates longer and longer songs until the language's capacity for strings is exceeded, indicating there's probably no limit to the size of songs under that condition (three a's in a row allowable).

So the consideration of a single note being a sequence, therefore preventing three a's in a row, limits the songs to a finite set.


  Posted by Charlie on 2004-12-14 15:19:34
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 (5)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

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