login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A115357
Period 6: repeat [1,1,1,0,2,0].
3
1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 2, 0
OFFSET
0,5
COMMENTS
Diagonal sums of number triangle A115356.
FORMULA
G.f.: (1+2*x+2*x^2)/(1+x-x^3-x^4).
a(n) = -a(n-1)+a(n-3)+a(n-4).
a(n) = -cos(2*Pi*n/3+Pi/6)/sqrt(3)+sin(2*Pi*n/3+Pi/6)/3+(-1)^n/2+5/6.
Sequence shifted right by 2 is additive with a(p^e) = 1 if p = 2 or 3, 0 otherwise.
MATHEMATICA
PadRight[{}, 120, {1, 1, 1, 0, 2, 0}] (* or *) LinearRecurrence[{-1, 0, 1, 1}, {1, 1, 1, 0}, 120] (* Harvey P. Dale, Jan 28 2015 *)
CROSSREFS
Cf. A171182. [From Juri-Stepan Gerasimov, Dec 04 2009]
Cf. A115356.
Sequence in context: A280750 A280748 A117454 * A171182 A333806 A340832
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jan 21 2006
STATUS
approved

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy