|
| |
|
|
A006996
|
|
C(2n,n) mod 3.
(Formerly M0021)
|
|
6
| |
|
|
1, 2, 0, 2, 1, 0, 0, 0, 0, 2, 1, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 1, 2, 0, 0, 0, 0, 1, 2, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,2
|
|
|
COMMENTS
| Removing 0's from the sequence gives Thue-Morse sequence A001285 : 1,2,0,2,1,0,0,0,0,2,1,0,1,2,..->1,2,2,1,2,1,1,2,... - Benoit Cloitre (benoit7848c(AT)orange.fr), Jan 04 2004
a(n) = 0 if n in A074940, a(n) = 1 if n in A074939, a(n) = 2 if n in A074938.
|
|
|
REFERENCES
| N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
|
|
|
LINKS
| Michael Gilleland, Some Self-Similar Integer Sequences
|
|
|
FORMULA
| a(n)=A005704(n) mod 3. - Benoit Cloitre (benoit7848c(AT)orange.fr), Jan 04 2004
A fixed point of the morphism : 1 -> 120, 2 -> 210, 0 -> 000 . - DELEHAM Philippe (kolotoko(AT)wanadoo.fr), Jan 08 2004
|
|
|
MATHEMATICA
| Table[ Mod[ Binomial[2n, n], 3], {n, 0, 104}] (* Or *)
Nest[ Function[ l, {Flatten[(l /. {0 -> {0, 0, 0}, 1 -> {1, 2, 0}, 2 -> {2, 1, 0}})]}], {1}, 7] (from Robert G. Wilson v 28 2005)
|
|
|
CROSSREFS
| Sequence in context: A056615 A060989 A135298 * A112604 A203399 A072627
Adjacent sequences: A006993 A006994 A006995 * A006997 A006998 A006999
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| N. J. A. Sloane (njas(AT)research.att.com), Jim Propp (propp(AT)math.wisc.edu)
|
| |
|
|