OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
E. Angelini, k-chunks sum and division by k, post to the SeqFan list, Mar 22 2013
Index entries for linear recurrences with constant coefficients, signature (0,0,0,2,0,0,0,-1).
FORMULA
a(n) = 2 a(n-4) - a(n-8).
G.f.: x*(1 + 2*x + 3*x^2 + 4*x^3 + 3*x^4 + 2*x^5 + x^6 + 4*x^7)/((1 - x)*(1 + x)*(1 + x^2))^2.
a(n) = n unless n = 0 (mod 4) in which case a(n) = 2n-4.
a(n) = A222258(n-1) + 1. - Paolo Xausa, Oct 02 2025
MATHEMATICA
LinearRecurrence[{0, 0, 0, 2, 0, 0, 0, -1}, {1, 2, 3, 4, 5, 6, 7, 12}, 100] (* Paolo Xausa, Oct 02 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric Angelini and M. F. Hasler, Mar 23 2013
STATUS
approved
