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 A158677 #17 Dec 12 2023 08:09:14 %S A158677 3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5, %T A158677 6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4, %U A158677 0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0,5,6,3,3,4,0 %N A158677 Period 6: repeat [3, 4, 0, 5, 6, 3]. %C A158677 Also the decimal expansion of 1135210/333333 or the continued fraction of (81+sqrt(9867))/58. %H A158677 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,1). %F A158677 G.f.: x*(3+4*x+5*x^3+6*x^4+3*x^5) / ((1-x)*(1+x)*(1+x+x^2)*(x^2-x+1)). %F A158677 a(n) = a(n-6) for n>6. %F A158677 a(n) = cos(n*Pi/6)^2 * (39 - 36*cos(n*Pi/3) + 6*cos(2*n*Pi/3) - 4*sqrt(3)*sin(n*Pi/3))/3. - _Wesley Ivan Hurt_, Jun 23 2016 %p A158677 A158677:=n->[3, 4, 0, 5, 6, 3][(n mod 6)+1]: seq(A158677(n), n=0..100); # _Wesley Ivan Hurt_, Jun 23 2016 %t A158677 PadRight[{}, 120, {3,4,0,5,6,3}] (* _Harvey P. Dale_, Aug 06 2013 *) %o A158677 (Magma) &cat [[3, 4, 0, 5, 6, 3]^^20]; // _Wesley Ivan Hurt_, Jun 23 2016 %Y A158677 Cf. A158674. %K A158677 nonn,easy %O A158677 1,1 %A A158677 _Paul Curtz_, Mar 24 2009 %E A158677 Edited and extended by _R. J. Mathar_, Sep 07 2009