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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A093349 A 7-fractal "castle" starting with 0. 3
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; refs; listen; history; internal format)
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))

PROG

(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

Sequence in context: A021570 A197687 A188943 * A020789 A153857 A093813

Adjacent sequences:  A093346 A093347 A093348 * A093350 A093351 A093352

KEYWORD

nonn

AUTHOR

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

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 16 12:41 EST 2012. Contains 205909 sequences.