OFFSET
1,2
COMMENTS
Numbers n such that A232713(n) is divisible by n. [Bruno Berselli, Dec 11 2013]
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
G.f.: (1 + x)*(1 + x + x^2 + x^4) / ((1 - x)^2*(1 + x + x^2 + x^3 + x^4)). [Bruno Berselli, Dec 11 2013]
From Wesley Ivan Hurt, Dec 30 2016: (Start)
a(n) = a(n-1) + a(n-5) - a(n-6) for n > 6.
a(n) = (40n - 10 + 3*(n mod 5) + 3*((n+1) mod 5) - 2*((n+2) mod 5) - 2*((n+3) mod 5) - 2*((n+4) mod 5))/25. (End)
MATHEMATICA
Select[Range@ 107, Or[OddQ@ Mod[#, 8], Mod[#, 8] == 6] &] (* Michael De Vlieger, Oct 23 2015 *)
#+{1, 3, 5, 6, 7}&/@(8*Range[0, 20])//Flatten (* Harvey P. Dale, May 13 2019 *)
PROG
(PARI) x='x+O('x^100); Vec((1+x)*(1+x+x^2+x^4)/((1-x)^2*(1+x+x^2+x^3+ x^4))) \\ Altug Alkan, Oct 22 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved