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!)
A117441 Periodic with repeating part {1,1,0,1,-1,0,-1,-1,0,-1,1,0}. 4
1, 1, 0, 1, -1, 0, -1, -1, 0, -1, 1, 0, 1, 1, 0, 1, -1, 0, -1, -1, 0, -1, 1, 0, 1, 1, 0, 1, -1, 0, -1, -1, 0, -1, 1, 0, 1, 1, 0, 1, -1, 0, -1, -1, 0, -1, 1, 0, 1, 1, 0, 1, -1, 0, -1, -1, 0, -1, 1, 0, 1, 1, 0, 1, -1, 0, -1, -1, 0, -1, 1, 0, 1, 1, 0, 1, -1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Diagonal sums of number triangle A117440.
LINKS
FORMULA
G.f.: (1+x-x^2)/(1-x^2+x^4).
a(n) = Sum_{k=0..floor(n/2)} C(n-k,k)*(cos(Pi*(n-2k)/2)+sin(Pi*(n-2k)/2).
a(1)=a(2)=1; a(n) = a(n-2) + (-1)^n*a(n-1). - José María Grau Ribas, Jan 08 2012
a(n) = A260190(n+2) = A260192(n-1). a(2*n + 1) = A010892(n). a(3*n) = A057077(n). a(3*n + 1) = A087960(n). a(3*n + 2) = 0. - Michael Somos, Jul 18 2015
EXAMPLE
G.f. = 1 + x + x^3 - x^4 - x^6 - x^7 - x^9 + x^10 + x^12 + x^13 + x^15 + ...
MATHEMATICA
a[1] := 1; a[2] := 1; a[n_] := a[n] = a[n - 2] + (-1)^(n) a[n - 1]; Array[a, 100] (* José María Grau Ribas, Jan 08 2012 *)
PadRight[{}, 84, {1, 1, 0, 1, -1, 0, -1, -1, 0, -1, 1, 0}] (* Harvey P. Dale, Mar 30 2012 *)
a[ n_] := KroneckerSymbol[ -6, 2 n + 5]; (* Michael Somos, Jul 18 2015 *)
LinearRecurrence[{0, 1, 0, -1}, {1, 1, 0, 1}, 78] (* Ray Chandler, Aug 25 2015 *)
PROG
(PARI) Vec((1+x-x^2)/(1-x^2+x^4)+O(x^99)) \\ Charles R Greathouse IV, Jan 10 2012
(PARI) {a(n) = kronecker( -6, 2*n + 5)}; /* Michael Somos, Jul 18 2015 */
CROSSREFS
Sequence in context: A016118 A011646 A016350 * A049347 A010892 A091338
KEYWORD
easy,sign
AUTHOR
Paul Barry, Mar 16 2006
EXTENSIONS
More terms from Sean A. Irvine, Sep 26 2011
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 19 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)