The Challenge
The shortest code by character count that will output the Morris Number Sequence. The Morris Number Sequence, also known as the Look-and-say sequence is a sequence of numbers that starts as follows:
1, 11, 21, 1211, 111221, 312211, ...
You can generate the sequence infinitely (i.e, you don't have to generate a specific number).
I/O Expectations
The program doesn't need to take any input (but bonus points for accepting input and thereby providing the option to start from any arbitrary starting point or number). At the very least your program must start from 1
.
Output is at the very least expected to be the sequence:
1
11
21
1211
111221
312211
...
Extra Credit
If you're going for extra credit, you would need to do something like this:
$ morris 1
1
11
21
1211
111221
312211
...
$ morris 3
3
13
1113
3113
132113
...
code-golf
questions are a gray area in SO. – Paulie