

A152856


Periodic sequence [4,0,4,3,4] of period 5


1



4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4, 4, 0, 4, 3, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,1


LINKS

Table of n, a(n) for n=0..69.
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,1).


FORMULA

a(n+5) = a(n) with a(0) = a(2) = a(4) = 4, a(1) = 0 and a(3) = 3
a(n) = 3+(1/23/10*5^(1/2))*cos(2*n*Pi/5)+(1/10*(4*(5+5^(1/2))^(1/2)(55^(1/2))^(1/2))*2^(1/2))*sin(2*n*Pi/5)+(3/10*5^(1/2)+1/2)*cos(4*n*Pi/5)+(1/10*((5+5^(1/2))^(1/2)+4*(55^(1/2))^(1/2))*2^(1/2))*sin(4*n*Pi/5)
o.g.f f(z) = (4+4*z^2+3*z^3+4*z^4)/(1z^5)
a(n)=(1/10)*{3*(n mod 5)+[(n+1) mod 5]+5*[(n+2) mod 5]5*[(n+3) mod 5]+11*[(n+4) mod 5]}, with n>=0 [From Paolo P. Lava, Dec 15 2008]


MATHEMATICA

PadRight[{}, 100, {4, 0, 4, 3, 4}] (* Harvey P. Dale, Jun 08 2014 *)


CROSSREFS

A026042
Sequence in context: A238002 A016680 A062524 * A031362 A198414 A309721
Adjacent sequences: A152853 A152854 A152855 * A152857 A152858 A152859


KEYWORD

easy,nonn


AUTHOR

Richard Choulet, Dec 14 2008


STATUS

approved



