[go: up one dir, main page]

login
A059835
Form triangle as follows: start with three single digits: 0, 1, 2. Each succeeding row is a concatenation of the previous three rows.
1
0, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 2, 0, 1, 2, 1, 2, 0, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 2, 0, 1, 2, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 2, 0, 1, 2, 1, 2, 0, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 2, 0, 1, 2, 1, 2, 0, 1, 2, 2, 0, 1, 2, 1, 2, 0, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 2, 0, 1, 2, 1, 2, 0, 1, 2, 1, 2, 0, 1, 2, 2, 0, 1, 2, 1, 2
OFFSET
0,3
COMMENTS
Trajectory of 0 under the morphism 0 -> 1, 1-> 2, 2 -> 012. - Robert G. Wilson v, May 20 2014
The sequence of row lengths is A000213. - Michael Somos, May 22 2014
REFERENCES
C. Pickover, Wonders of Numbers, Oxford University Press, NY, 2001, p. 273.
LINKS
C. A. Pickover, "Wonders of Numbers, Adventures in Mathematics, Mind and Meaning," Zentralblatt review
FORMULA
a(n) = A059832(n) - 1. - Sean A. Irvine, Oct 11 2022
EXAMPLE
Triangle begins:
0
1
2
0 1 2
1 2 0 1 2
2 0 1 2 1 2 0 1 2
...
MAPLE
T:= proc(n) option remember;
`if`(n<3, n, seq(T(i), i=n-3..n-1))
end:
seq(T(n), n=0..10); # Alois P. Heinz, May 22 2014
MATHEMATICA
NestList[ Flatten[# /. {0 -> {1}, 1 -> {2}, 2 -> {0, 1, 2}}] &, {0}, 8] // Flatten (* Robert G. Wilson v, May 20 2014 *)
CROSSREFS
Cf. A059832.
Sequence in context: A029298 A262520 A351074 * A274659 A274661 A225089
KEYWORD
easy,nonn,tabf,base
AUTHOR
Jason Earls, Feb 25 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Feb 26 2001
STATUS
approved