OFFSET
1,1
LINKS
FORMULA
G.f.: (x + 4*x^2 + x^3)/(1 - x^3).
From Wesley Ivan Hurt, Jul 01 2016: (Start)
a(n) = a(n-3) for n>3.
a(n) = 3 + cos(2*n*Pi/3) + sqrt(3)*sin(2*n*Pi/3). (End)
MAPLE
seq(op([4, 1, 4]), n=1..50); # Wesley Ivan Hurt, Jul 01 2016
MATHEMATICA
PadRight[{}, 100, {4, 1, 4}] (* Wesley Ivan Hurt, Jul 01 2016 *)
PROG
(PARI) a(n)=[4, 1, 4][n%3+1] \\ Charles R Greathouse IV, Jun 02 2011
(Magma) &cat [[4, 1, 4]^^30]; // Wesley Ivan Hurt, Jul 01 2016
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, Nov 22 2010
STATUS
approved