login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131379 Period 4: repeat [1, 0, -1, 1]. 0
1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1, 1, 0, -1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(n) = 1/4 + cos(1/2*Pi*n) - 1/2*sin(1/2*Pi*n) + 1/4*(-1)^(1+n). - R. J. Mathar, Nov 15 2007
G.f.: (1-x^2+x^3) / ((1-x)*(1+x)*(x^2+1)). - R. J. Mathar, Jun 02 2011
a(n) = a(n-4) for n>3. - Wesley Ivan Hurt, Jul 09 2016
a(n) = 1 - A130731(n+3). - Wesley Ivan Hurt, Dec 23 2016
MAPLE
seq(op([1, 0, -1, 1]), n=0..40); # Wesley Ivan Hurt, Jul 09 2016
MATHEMATICA
PadRight[{}, 100, {1, 0, -1, 1}] (* Wesley Ivan Hurt, Jul 09 2016 *)
CoefficientList[Series[(1 - x^2 + x^3)/((1 - x) (1 + x) (x^2 + 1)), {x, 0, 80}], x] (* Michael De Vlieger, Dec 23 2016 *)
PROG
(Magma) &cat [[1, 0, -1, 1]^^30]; // Wesley Ivan Hurt, Jul 09 2016
CROSSREFS
Cf. A130731.
Sequence in context: A104521 A317198 A354993 * A359819 A284677 A191232
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Oct 01 2007
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 03:08 EDT 2024. Contains 371918 sequences. (Running on oeis4.)