The Look and Say sequence is an interesting sequence of numbers where each term is given by describing the makeup of the previous term.
The 1st term is given as 1. The 2nd term is 11 (‘one one’) because the first term (1) consisted of a single 1. The 3rd term is then 21 (‘two one’) because the second term consisted of two 1s. The first 6 terms are:
Formal Inputs & Outputs
On console input you should enter a number N
The Nth Look and Say number.
Allow any ‘seed’ number, not just 1. Can you find any interesting cases?
Original exercise and other solutions: