Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A053838
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A053838 (Sum of digits of n written in base 3) modulo 3. +0
10
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; listen)
OFFSET

0,3

COMMENT

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: A166453 A118233 A159955 this_sequence A117167 A117169 A046920

Adjacent sequences: A053835 A053836 A053837 this_sequence A053839 A053840 A053841

KEYWORD

base,nonn

AUTHOR

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

page 1

Search completed in 0.003 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 4 15:11 EST 2009. Contains 170347 sequences.


AT&T Labs Research