Code:
1
11
21
1211
111221
312211
...
After much fiddling, I finally got a program written that accurately figures it out... I personally love it. It's a very simple pattern to grasp from a conceptual standpoint, but the actual math for it is pretty maddening.. hence why I didn't even use any math in the app...