In mathematics, the look-and-say sequence is the sequence of integers beginning as follows:
To generate a member of the sequence from the previous member, read off the digits of the previous member, counting the number of digits in groups of the same digit. For example:
The look-and-say sequence was analyzed by John Conway[1] after he was introduced to it by one of his students at a party.[2][3]
The idea of the look-and-say sequence is similar to that of run-length encoding.
If started with any digit d from 0 to 9 then d will remain indefinitely as the last digit of the sequence. For any d other than 1, the sequence starts as follows:
Ilan Vardi has called this sequence, starting with d = 3, the Conway sequence (sequence A006715 in the OEIS). (for d = 2, see OEIS: A006751)[4]