OFFSET
1,1
REFERENCES
Y. V. Nesterenko, A few remarks on zeta(3), Mathematical Notes, 59 (No. 6, 1996), 625-636.
LINKS
Y. V. Nesterenko, Zeta(3) and recurrence relations.
Yu. V. Nesterenko, A few remarks on zeta(3), Math. Notes 59 (1996) 625-636.
Index entries for linear recurrences with constant coefficients, signature (1,1,-1,1,-1,-1,1).
FORMULA
a(n) = A008733(n-1), n>2. - R. J. Mathar, Jul 31 2010
G.f.: x*(2 - x - x^2 + 2*x^6 - x^8)/(1 - x - x^2 + x^3 - x^4 + x^5 + x^6 - x^7). - Charles R Greathouse IV, May 25 2026
MAPLE
A060805 := proc(n) local nshf, k ; if n <= 2 then op(n, [2, 1]) ; else nshf := n-1 ; k := floor(nshf/4) ; if nshf mod 4 = 1 then k*(k+1) ; elif nshf mod 4 = 0 then (k+1)^2 ; elif nshf mod 4 = 2 then (k+1)*(k+2) ; else (k+1)^2 ; end if; end if; end proc: seq(A060805(n), n=1..80) ; # R. J. Mathar, Jul 31 2010
MATHEMATICA
Join[{2, 1}, LinearRecurrence[{1, 1, -1, 1, -1, -1, 1}, {2, 1, 4, 2, 6, 4, 9}, 100]] (* Jean-François Alcover, Apr 01 2020 *)
PROG
(PARI) a(n)=if(n>2, my(q=n\4); q^2+[0, 2*q+1, q, 3*q+2][n%4+1], 3-n) \\ Charles R Greathouse IV, May 25 2026
CROSSREFS
KEYWORD
nonn,cofr,easy
AUTHOR
N. J. A. Sloane, Apr 29 2001
EXTENSIONS
More terms from R. J. Mathar, Jul 31 2010
STATUS
approved
