login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A053838 (Sum of digits of n written in base 3) modulo 3. 9
0, 1, 2, 1, 2, 0, 2, 0, 1, 1, 2, 0, 2, 0, 1, 0, 1, 2, 2, 0, 1, 0, 1, 2, 1, 2, 0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 2, 0, 1, 0, 1, 2, 1, 2, 0, 0, 1, 2, 1, 2, 0, 2, 0, 1, 2, 0, 1, 0, 1, 2, 1, 2, 0, 0, 1, 2, 1, 2, 0, 2, 0, 1, 1, 2, 0, 2, 0, 1, 0, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 2, 2, 0, 1, 0, 1, 2, 1, 2, 0, 0, 1, 2, 1, 2, 0 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

COMMENTS

Equals A004128, (0, 1, 2, 4, 5, 6, 8, 9, 10,...) mod 3 [From Gary W. Adamson (qntmpkt(AT)yahoo.com), Aug 24 2008]

LINKS

Michael Gilleland, Some Self-Similar Integer Sequences

FORMULA

a(n) =A010872(A053735(n)) =(n+a(floor[n/3])) mod 3. So can construct sequence by starting with 0 and mapping 0->012, 1->120 and 2->201 (e.g. 0, 012, 012120201, 012120201120201012201012120, ...) and looking at n-th digit of a term with sufficient digits.

MATHEMATICA

Nest[ Flatten[ # /. {0 -> {0, 1, 2}, 1 -> {1, 2, 0}, 2 -> {2, 0, 1}}] &, {0}, 7] (from Robert G. Wilson v Mar 08 2005).

CROSSREFS

Cf. A010060, A053837, A053839-A053844.

Equals A026600(n+1) - 1.

A004128 [From Gary W. Adamson (qntmpkt(AT)yahoo.com), Aug 24 2008]

Sequence in context: A118233 A181117 A159955 * A117167 A117169 A046920

Adjacent sequences:  A053835 A053836 A053837 * A053839 A053840 A053841

KEYWORD

base,nonn

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Mar 28 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 19:07 EST 2012. Contains 206085 sequences.