OFFSET
0,4
COMMENTS
At n = 62 the sequence settles down and becomes quasi-periodic with a 6-loop. - Ctibor O. Zizka, Feb 21 2025
LINKS
Michel Marcus, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (2,-3,4,-5,6,-5,4,-3,2,-1,0,1,-2,3,-4,5,-6,5,-4,3,-2,1).
FORMULA
From Ctibor O. Zizka, Feb 21 2025: (Start)
For n >= 62,
a(n) = n/6 + floor((n - 2)*(n - 3)/12) - 1 if n mod 6 = 0,
a(n) = n if n mod 6 = 1,
a(n) = 12 if n mod 6 = 2 or 3,
a(n) = n - 1 if n mod 6 = 4,
a(n) = floor((n - 1)*(n - 2)/12) if n mod 6 = 5. (End)
PROG
(PARI) {print1(a=1, ", ", b=1, ", "); for(n=2, 71, print1(c=floor((n-1)*b/a), ", "); a=b; b=c)} \\ Klaus Brockhaus, Oct 02 2008
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Leroy Quet, Oct 01 2008
EXTENSIONS
More terms from Klaus Brockhaus and R. J. Mathar, Oct 02 2008
STATUS
approved