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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A093348 A 5-fractal "castle" starting with 0. 7
0, 1, 0, 1, 0, 5, 4, 5, 4, 5, 0, 1, 0, 1, 0, 5, 4, 5, 4, 5, 0, 1, 0, 1, 0, 25, 24, 25, 24, 25, 20, 21, 20, 21, 20, 25, 24, 25, 24, 25, 20, 21, 20, 21, 20, 25, 24, 25, 24, 25, 0, 1, 0, 1, 0, 5, 4, 5, 4, 5, 0, 1, 0, 1, 0, 5, 4, 5, 4, 5, 0, 1, 0, 1, 0, 25, 24, 25, 24, 25, 20, 21, 20, 21, 20, 25, 24 (list; graph; refs; listen; history; internal format)
OFFSET

1,6

LINKS

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

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

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

FORMULA

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

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

PROG

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

CROSSREFS

Cf. A093347, A093349

Cf. A060904.

Sequence in context: A131291 A131369 A122219 * A001050 A113784 A021651

Adjacent sequences:  A093345 A093346 A093347 * A093349 A093350 A093351

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 17 13:18 EST 2012. Contains 206031 sequences.