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 A154687 #16 Dec 12 2023 08:07:08 %S A154687 1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8, %T A154687 5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4, %U A154687 7,8,5,2,1,4,7,8,5,2,1,4,7,8,5,2,1,4 %N A154687 Period 6: repeat [1, 4, 7, 8, 5, 2]. %C A154687 Terms of the simple continued fraction of 1501/(sqrt(5071503)-1043). [_Paolo P. Lava_, Feb 17 2009] %C A154687 Decimal expansion of 148/1001. [_Paolo P. Lava_, Aug 05 2009] %H A154687 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,-1,1). %F A154687 From _Wesley Ivan Hurt_, Jun 23 2016: (Start) %F A154687 G.f.: (1+3*x+3*x^2+2*x^3) / (1-x+x^3-x^4). %F A154687 a(n) = a(n-1) - a(n-3) + a(n-4) for n>3. %F A154687 a(n) = (27 - cos(n*Pi) - 20*cos(n*Pi/3) + 4*sqrt(3)*sin(n*Pi/3))/6. (End) %p A154687 A154687:=n->[1, 4, 7, 8, 5, 2][(n mod 6)+1]: seq(A154687(n), n=0..100); # _Wesley Ivan Hurt_, Jun 23 2016 %t A154687 PadRight[{}, 72, {1,4,7,8,5,2}] (* _Harvey P. Dale_, Nov 12 2011 *) %o A154687 (Magma) &cat [[1, 4, 7, 8, 5, 2]^^20]; // _Wesley Ivan Hurt_, Jun 23 2016 %K A154687 nonn,easy %O A154687 0,2 %A A154687 _Paul Curtz_, Jan 14 2009