The “look and say sequence” is defined by reading off the previous number, counting the digits in a consecutive group – then using that number as the next term. For example, this is the look and say sequence beginning with 1:
- 1 is read as “one 1”, or 11, so the next term is 11
- 11 is read as “two 1s”, or 21, so the next term is 21
- 21 is read as “one 2, then one 1”, or 1211, so the next term is 1211
Find the 8th term (including the first, 1-digit term) of the look and say sequence beginning with 3.
Remember, to solve this puzzle and appear on the leaderboard, email both your solution and your source code (in any language) to email@example.com. Good luck!!