login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A100286 Expansion of (1+2x^2-2x^3+2x^4)/(1-x+x^2-x^3+x^4-x^5). 1
1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 0, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..89.

Index entries for linear recurrences with constant coefficients, signature (1,-1,1,-1,1).

FORMULA

a(n)=a(n-1)-a(n-2)+a(n-3)-a(n-4)+a(n-5); a(n)=1+cos(pi*n/3)/2-cos(2*pi*n/3)/2+sqrt(3)sin(pi*n/3)/6-sqrt(3)sin(2*pi*n/3)/2; a(n)=mod(A100284(n), 2).

MATHEMATICA

CoefficientList[Series[(1+2x^2-2x^3+2x^4)/(1-x+x^2-x^3+x^4-x^5), {x, 0, 100}], x] (* Harvey P. Dale, Mar 03 2019 *)

CROSSREFS

Sequence in context: A030202 A159818 A081827 * A280912 A332662 A029303

Adjacent sequences:  A100283 A100284 A100285 * A100287 A100288 A100289

KEYWORD

easy,nonn

AUTHOR

Paul Barry, Nov 11 2004

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 4 08:38 EST 2021. Contains 341781 sequences. (Running on oeis4.)