Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A093347
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A093347 A 3-fractal "castle" starting with 0. +0
9
0, 1, 0, 3, 2, 3, 0, 1, 0, 9, 8, 9, 6, 7, 6, 9, 8, 9, 0, 1, 0, 3, 2, 3, 0, 1, 0, 27, 26, 27, 24, 25, 24, 27, 26, 27, 18, 19, 18, 21, 20, 21, 18, 19, 18, 27, 26, 27, 24, 25, 24, 27, 26, 27, 0, 1, 0, 3, 2, 3, 0, 1, 0, 9, 8, 9, 6, 7, 6, 9, 8, 9, 0, 1, 0, 3, 2, 3, 0, 1, 0, 81, 80, 81, 78, 79, 78, 81 (list; graph; listen)
OFFSET

1,4

LINKS

B. Cloitre, Graph of a(n) for n=1 up to 9

B. Cloitre, Graph of a(n) for n=1 up to 27

B. Cloitre, Graph of a(n) for n=1 up to 81

B. Cloitre, Graph of a(n) for n=1 up to 243

FORMULA

a(1)=0 then a(n)=w(n)-a(n-w(n)) where w(n)=3^floor(log(n-1)/log(3)).

a(3^n)=0, a(3^n+1)=3^n, a(3^n+2)=3^n-1, a(3^n+3)=3^n etc.

a(n) = sum(i=1, n-1, (-1)^(i-1)*3^valuation(i, 3))

PROGRAM

(PARI) a(n)=if(n<2, 0, 3^floor(log(n-1)/log(3))-a(n-3^floor(log(n-1)/log(3))))

CROSSREFS

Cf. A093348, A093349

Cf. A038500.

Sequence in context: A016458 A058513 A047160 this_sequence A134676 A103491 A089306

Adjacent sequences: A093344 A093345 A093346 this_sequence A093348 A093349 A093350

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Apr 26 2004

page 1

Search completed in 0.002 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 11 12:57 EST 2009. Contains 170656 sequences.


AT&T Labs Research