This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A087157 #5 Mar 30 2012 18:36:38 %S A087157 1,2,1,3,1,1,2,1,4,1,1,1,2,1,2,1,3,1,1,2,1,5,1,1,1,1,2,1,2,1,2,1,3,1, %T A087157 1,2,1,3,1,1,2,1,4,1,1,1,2,1,2,1,3,1,1,2,1,6,1,1,1,1,1,2,1,2,1,2,1,2, %U A087157 1,3,1,1,2,1,3,1,1,2,1,3,1,1,2,1,4,1,1,1,2,1,2,1,3,1,1,2,1,4,1,1,1,2,1,2,1 %N A087157 Satisfies a(1)=1, a(A087158(n+1)) = a(n)+1, with a(m)=1 for all m not found in A087158, where A087158(n+2)=A087158(n+1)+a(n)+1. %C A087157 Removing all the 1's results in the original sequence with every term incremented by 1. %F A087157 Records are given by A055588(n): a(A055588(n))=n, where A055588(n)=Fibonacci(2n-2)+1 and Fibonacci(n)=A000045(n). %e A087157 Initialize all terms to 1. Set a(1)=1, go one term forward, %e A087157 set a(2)=a(1)+1=2, go 2 terms forward, %e A087157 set a(4)=a(2)+1=3, go 3 terms forward, %e A087157 set a(7)=a(3)+1=2, go 2 terms forward, %e A087157 set a(9)=a(4)+1=4, go 4 terms forward, %e A087157 set a(13)=a(5)+1=1, etc. %e A087157 The indices 1,2,4,7,9,13,... form A087158. %Y A087157 Cf. A087158, A085246. %K A087157 nonn %O A087157 1,2 %A A087157 _Paul D. Hanna_, Aug 22 2003