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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A094345 Sum of all digits in ternary expansions of 0, ..., n. 1
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; refs; listen; history; internal format)
OFFSET

0,3

REFERENCES

J.-P. Allouche & J. Shallit, Automatic sequences, Cambridge 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)

PROG

(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: A034034 A184795 A105527 * A039889 A118098 A022297

Adjacent sequences:  A094342 A094343 A094344 * A094346 A094347 A094348

KEYWORD

nonn,base

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Jun 08 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 03:44 EST 2012. Contains 205860 sequences.