Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A093349
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A093349 A 7-fractal "castle" starting with 0. +0
4
0, 1, 0, 1, 0, 1, 0, 7, 6, 7, 6, 7, 6, 7, 0, 1, 0, 1, 0, 1, 0, 7, 6, 7, 6, 7, 6, 7, 0, 1, 0, 1, 0, 1, 0, 7, 6, 7, 6, 7, 6, 7, 0, 1, 0, 1, 0, 1, 0, 49, 48, 49, 48, 49, 48, 49, 42, 43, 42, 43, 42, 43, 42, 49, 48, 49, 48, 49, 48, 49, 42, 43, 42, 43, 42, 43, 42, 49, 48, 49, 48, 49, 48, 49, 42, 43 (list; graph; listen)
OFFSET

1,8

FORMULA

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

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

PROGRAM

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

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

CROSSREFS

Cf. A093347, A093348

Adjacent sequences: A093346 A093347 A093348 this_sequence A093350 A093351 A093352

Sequence in context: A073084 A011473 A021570 this_sequence A020789 A093813 A092902

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 October 12 15:26 EDT 2008. Contains 144830 sequences.


AT&T Labs Research