OFFSET
1,2
COMMENTS
LINKS
FORMULA
From Chai Wah Wu, Jun 04 2016: (Start)
a(n) = 2*a(n-1) - 2*a(n-2) + a(n-3) for n > 5.
G.f.: x^2*(2 + x - 3*x^2 + 3*x^3)/((1 - x)*(1 - x + x^2)). (End)
From Wesley Ivan Hurt, Jun 28 2016: (Start)
a(n) = a(n-6) for n>8.
a(n) = (9 - 6*cos(n*Pi/3) + 2*sqrt(3)*sin(n*Pi/3))/3 for n>2. (End)
EXAMPLE
0.2531135531135531135531135531135531135531135...
MAPLE
A234255:=n->[5, 3, 1, 1, 3, 5][(n mod 6)+1]: 0, 2, seq(A234255(n), n=0..100); # Wesley Ivan Hurt, Jun 28 2016
MATHEMATICA
Join[{0}, RealDigits[-BernoulliB[12], 10, 120][[1]]] (* or *) PadRight[{0, 2}, 120, {3, 5, 5, 3, 1, 1}] (* Harvey P. Dale, Dec 30 2013 *)
PROG
(PARI)
default(realprecision, 120);
-bernfrac(12) + 0. \\ Rick L. Shepherd, Jan 15 2014
(Magma) [0, 2] cat &cat [[5, 3, 1, 1, 3, 5]^^30]; // Wesley Ivan Hurt, Jun 28 2016
CROSSREFS
KEYWORD
AUTHOR
Paul Curtz, Dec 22 2013
EXTENSIONS
Offset corrected by and more terms from Rick L. Shepherd, Jan 15 2014
STATUS
approved