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 A153110 #49 Mar 08 2024 01:12:32 %S A153110 1,5,7,2,4,8,1,5,7,2,4,8,1,5,7,2,4,8,1,5,7,2,4,8,1,5,7,2,4,8,1,5,7,2, %T A153110 4,8,1,5,7,2,4,8,1,5,7,2,4,8,1,5,7,2,4,8,1,5,7,2,4,8,1,5,7,2,4,8,1,5, %U A153110 7,2,4,8,1,5,7,2,4,8,1,5,7,2,4,8,1,5,7,2,4,8 %N A153110 Period 6: repeat [1, 5, 7, 2, 4, 8]. %C A153110 Also A141425^5 mod 9. See A020806. %H A153110 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (-1,0,1,1). %F A153110 From _R. J. Mathar_, Mar 08 2011: (Start) %F A153110 a(n) = - a(n-1) + a(n-3) + a(n-4) for n>3. %F A153110 G.f.: (2*x+1)^3 / ( (1-x)*(1+x)*(1+x+x^2) ). (End) %F A153110 a(n) = (9-cos(n*Pi)-4*sqrt(3)*cos((1-4*n)*Pi/6))/2. - _Wesley Ivan Hurt_, Jun 17 2016 %p A153110 A153110:=n->(9-cos(n*Pi)-4*sqrt(3)*cos((1-4*n)*Pi/6))/2: seq(A153110(n), n=0..100); # _Wesley Ivan Hurt_, Jun 17 2016 %t A153110 PadLeft[{},90,{1,5,7,2,4,8}] (* _Harvey P. Dale_, Sep 10 2011 *) %o A153110 (PARI) a(n)=[1,2,4,5,7,8][n%6+1] \\ _Charles R Greathouse IV_, Jun 02 2011 %o A153110 (Magma) &cat[[1, 5, 7, 2, 4, 8]: n in [0..20]]; // _Wesley Ivan Hurt_, Jun 17 2016 %Y A153110 Cf. A020806, A038194, A141425. %K A153110 nonn,easy %O A153110 0,2 %A A153110 _Paul Curtz_, Dec 18 2008