Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A094345
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A094345 Sum of all digits in ternary expansions of 0, ..., n. +0
2
0, 1, 3, 4, 6, 9, 11, 14, 18, 19, 21, 24, 26, 29, 33, 36, 40, 45, 47, 50, 54, 57, 61, 66, 70, 75, 81, 82, 84, 87, 89, 92, 96, 99, 103, 108, 110, 113, 117, 120, 124, 129, 133, 138, 144, 147, 151, 156, 160, 165, 171, 176, 182, 189, 191, 194, 198, 201, 205, 210, 214, 219 (list; graph; listen)
OFFSET

0,3

REFERENCES

J.-P. Allouche & J. Shallit, Automatic sequences, Cambrige University Press, 2003, p. 94

FORMULA

Asymptotically : a(n)=n*log(n)/log(3)+n*F(log(n)/log(3)) where F is a continuous function of period 1 nowhere differentiable (see Allouche & Shallit book)

PROGRAM

(PARI) s(k, n)=n-(k-1)*sum(m=1, n, valuation(m, k)); a(n)=sum(i=0, n, s(3, i))

CROSSREFS

Cf. A000788.

Sequence in context: A034027 A034034 A105527 this_sequence A039889 A118098 A022297

Adjacent sequences: A094342 A094343 A094344 this_sequence A094346 A094347 A094348

KEYWORD

nonn,base

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Jun 08 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 July 26 13:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research