|
| |
|
|
A095130
|
|
Expansion of (x+x^2)/(1-x^6); period 6: repeat [0, 1, 1, 0, 0, 0].
|
|
2
| |
|
|
0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,1
|
|
|
COMMENTS
| Sequences of period k composed of (k-p) zeros followed by p ones have a closed formula of floor((n mod k)/(k-p)), for p>=floor(n/2). [Gary Detlefs,(gdetlefs(AT)aol.com), May 18 2011]
|
|
|
FORMULA
| G.f.: x/(1-x+x^2-x^3+x^4-x^5);
a(n)=1/3-cos(2*pi*n/3)/3+sin(pi*n/3)/sqrt(3).
a(n)=mod(A095129(n),3).
a(n)=1/90*{2*(n mod 6)+2*[(n+1) mod 6]+2*[(n+2) mod 6]+17*[(n+3) mod 6]+2*[(n+4) mod 6]-13*[(n+5) mod 6]} with n>=0 - Paolo P. Lava (paoloplava(AT)gmail.com), Nov 27 2006
a(n) = floor(((n+3) mod 6)/4). [Gary Detlefs,(gdetlefs(AT)aol.com), May 18 2011]
|
|
|
CROSSREFS
| A011658
Sequence in context: A072608 A171386 A125720 * A030301 A071981 A093692
Adjacent sequences: A095127 A095128 A095129 * A095131 A095132 A095133
|
|
|
KEYWORD
| easy,nonn
|
|
|
AUTHOR
| Paul Barry (pbarry(AT)wit.ie), May 29 2004
|
|
|
EXTENSIONS
| Corrected by T. D. Noe (noe(AT)sspectra.com), Nov 08 2006
|
| |
|
|