A171372 a(n) = Numerator of 1/(2*n)^2 - 1/(3*n)^2 for n > 0, a(0) = 1.
1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 5
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,1).
Programs
-
Magma
[1] cat [Numerator(5/(6*n)^2): n in [1..100]]; // G. C. Greubel, Sep 20 2018
-
Mathematica
Table[If[n==0,1,Numerator[5/(6*n)^2]], {n,0,100}] (* G. C. Greubel, Sep 20 2018 *)
-
PARI
concat([1], vector(100, n, numerator(5/(6*n)^2))) \\ G. C. Greubel, Sep 20 2018
Formula
a(n) = numerator of 5/(6*n)^2 .
Period 5: repeat [1,5,5,5,5].
G.f.: (1 + 5*x + 5*x^2 + 5*x^3 + 5*x^4)/((1-x)*(1 + x + x^2 + x^3 + x^4)).
a(n) = 1 + 4*sign(n mod 5). - Wesley Ivan Hurt, Sep 26 2018
a(n) = (21-8*cos(2*n*Pi/5)-8*cos(4*n*Pi/5))/5. - Wesley Ivan Hurt, Sep 27 2018
Extensions
Edited by R. J. Mathar, Dec 15 2009
Comments