|
Search: id:A010872
|
|
| |
|
| 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2
(list; graph; listen)
|
|
|
OFFSET
|
0,3
|
|
|
COMMENT
|
Complement of A002264, since 3*A002264(n)+a(n)=n. - Hieronymus Fischer (Hieronymus.Fischer(AT)gmx.de), Jun 01 2007
|
|
LINKS
|
Ralph E. Griswold, Shaft Sequences
|
|
FORMULA
|
a(n) = n-3*floor(n/3) = a(n-3)
G.f.: (2x^2+x)/(1-x^3). a(n)=(1/2)(-1)^floor(2n/3)-(-1)^floor((2n-1)/3)-(3/2)(-1)^floor((2n+1)/3). a(n)=3*A022003(n)+A049347(n+2). - Mario Catalani (mario.catalani(AT)unito.it), Jan 08 2003
Fixed point of morphism 0 -> 01, 1 -> 20, 2 -> 12.
a(n)=1+(1-2cos(2*pi*(n-1)/3))*sin(2*pi*(n-1)/3))/sqrt(3). There is also a complex representation: a(n)=1/3*(1-r^n)*(1+r^n/(1-r)) where r=exp(2*pi/3*i)=(-1+sqrt(3)*i)/2 and i=sqrt(-1). - Hieronymus Fischer (Hieronymus.Fischer(AT)gmx.de), May 29 2007
Other trigonometric representation: a(n) = (16/9)*((sin(pi*(n-2)/3))^2+2*(sin(pi*(n-1)/3))^2)*(sin(pi*n/3))^2. Also: a(n) = (4/3)*(|sin(pi*(n-2)/3)|+2*|sin(pi*(n-1)/3)|)*|sin(pi*n/3)|. Also: a(n) = (4/9)*((1-cos(2*pi*(n-2)/3))+2*(1-cos(2*pi*(n-1)/3)))*(1-cos(2*pi*n/3)). These formulas can be easily adapted to represent any peridoc sequence. - Hieronymus Fischer (Hieronymus.Fischer(AT)gmx.de), Jun 01 2007
a(n) = 3 - a(n-1) - a(n-2) for n > 1. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Apr 13 2008
|
|
MATHEMATICA
|
Nest[ Function[ l, {Flatten[(l /. {0 -> {0, 1}, 1 -> {2, 0}, 2 -> {1, 2}})]}], {0}, 7] (from Robert G. Wilson v Feb 28 2005)
|
|
CROSSREFS
|
Cf. A000035, A010873. A080425, A004526, A002264, A002265, A002266.
Cf. partial sums: A130481. Other related sequences A130482, A130483, A130484, A130485.
Sequence in context: A127672 A134979 A112248 this_sequence A025858 A025684 A025678
Adjacent sequences: A010869 A010870 A010871 this_sequence A010873 A010874 A010875
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
njas
|
|
|
Search completed in 0.003 seconds
|