1,1
1,2,1
1,3,2,3,1
1,4,3,2,3,4,1
1,5,4,3,5,2,5,3,4,5,1
1,6,5,4,3,5,2,5,3,4,5,6,1
What are the next several lines and how are they formed?
Do the sequences have any special feature?
Does the pattern continue indefinitely?
(In reply to
This works, but is it what Bob had in mind (don't know if spoiler) by Charlie)
Yes the length of the palindromes are prime, but you're not quite there in generating them.
In the review comments for this problem, it was suggested that I add the next few palindromes, but for exactly the opposite reason that ThoughtProvoker requested them. I think for now I'll still leave them as an exercise for the reader. :)