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?
(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 |