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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A081604 String-length of ternary representation of n. 24
1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

LINKS

R. Zumkeller, Table of n, a(n) for n = 0..10000

Eric Weisstein's World of Mathematics, Ternary.

FORMULA

a(n) = A062153(n) + 1 for n>=1.

a(n) = A077267(n) + A062756(n) + A081603(n);

From Reinhard Zumkeller, Oct 19 2007. (Start)

0 <= A134021(n) - a(n) <= 1;

a(A134025(n)) = A134021(A134025(n));

a(A134026(n)) = A134021(A134026(n)) - 1. (End)

a(n+1) = -sum(k=1..n, mu(3*k)*floor(n/k)) [From Benoit Cloitre, Oct 21 2009]

a(n) = floor(log_3(n)) + 1. [Can Atilgan and Murat Erşen Berberler, Dec 05 2012]

EXAMPLE

a(8) = 2 because 8 = 22_3, having 2 digits.

a(9) = 3 because 9 = 100_3, having 3 digits.

MATHEMATICA

Table[Length[IntegerDigits[n, 3]], {n, 0, 99}] (* Alonso del Arte, Dec 30 2012 *)

PROG

(Haskell)

a081604 = length . a030341_row  -- Reinhard Zumkeller, Feb 21 2013

CROSSREFS

Cf. A007089, A080342.

Cf. A003137, A030341.

Sequence in context: A182434 A185679 A080342 * A123119 A099396 A126235

Adjacent sequences:  A081601 A081602 A081603 * A081605 A081606 A081607

KEYWORD

nonn,base

AUTHOR

Reinhard Zumkeller, Mar 23 2003

STATUS

approved

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 May 22 21:43 EDT 2013. Contains 225583 sequences.