OFFSET
1,2
COMMENTS
LINKS
Vincenzo Librandi,Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients,signature (2,-2,2,-2,2,-2,2,-1).
FORMULA
a(n) = {0,1,3,4,5,7,9,11} mod 12; n>0.
G.f. (1+x)*(x^5+x^3+1) / ( (x^2+1)*(x^4+1)*(x-1)^2 ). -R. J. Mathar,Nov 21 2011
EXAMPLE
a(16) = 24, == 0 mod 12.
MATHEMATICA
Select[Range[200], MemberQ[{0, 1, 3, 4, 5, 7, 9, 11}, Mod[#, 12]]&] (*Harvey P. Dale,Feb 20 2014 *)
PROG
(Magma) [n: n in [1..100]|n mod 12 in {0, 1, 3, 4, 5, 7, 9, 11}]; //Vincenzo Librandi,Feb 22 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson,Jun 18 2008
EXTENSIONS
More terms fromHarvey P. Dale,Feb 20 2014
STATUS
approved