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 A292032 #21 Sep 27 2017 09:29:43 %S A292032 0,2,3,4,1,5,1,2,6,2,1,3,1,7,3,2,1,3,4,2,3,8,1,4,1,2,3,2,4,5,1,2,3,4, %T A292032 9,3,1,5,4,2,1,3,1,4,3,5,1,6,4,2,3,2,1,5,1,10,3,2,4,3,6,5,3,4,1,3,1,2, %U A292032 4,5,1,3,1,6,3,2,7,5,4,2,3,2,1,4,1,5,6,2,4,11 %N A292032 a(n) is the value k such that A292030(A292031(n), k) = n. %C A292032 a(n) > 0 for all n > 0. %C A292032 for n != 1 the value is unique. For n = 1 A292030(A292031(n), 1) = A292030(A292031(1), 2) = 1. a(n) = 2 by convention. %H A292032 Ely Golden, <a href="/A292032/b292032.txt">Table of n, a(n) for n = 0..10000</a> %e A292032 a(2)=3 since A292030(A292031(2),3) = A292030(0,3) = 2. %o A292032 (Python) %o A292032 def smallestSeq(n): %o A292032 if(n<0): return [] %o A292032 if(n==0): return [0,0] %o A292032 j,r0,r1=0,0,1 %o A292032 while(r1<=n): r0,r1=r1,r0+r1 ; j+=1 %o A292032 while(r1>1): %o A292032 if(n%r1==r0): return [n//r1,j] %o A292032 r1,r0=r0,r1-r0 %o A292032 j-=1 %o A292032 return [n-1, j] %o A292032 for i in range(10001): %o A292032 print(str(i)+" "+str(smallestSeq(i)[1])) %Y A292032 Cf. A292031, A292030. %K A292032 nonn %O A292032 0,2 %A A292032 _Ely Golden_, Sep 08 2017