login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A085423
a(n) = floor(log_2(3n)).
4
1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8
OFFSET
1,2
COMMENTS
Length of the symmetric signed digit expansion of n with q=2 (i.e., the length of the representation of n in the (-1,0,1)_2 number system).
n occurs A001045(n) times. - Amiram Eldar, Feb 18 2024
FORMULA
a(n) = A000523(A008585(n)). - Reinhard Zumkeller, Mar 16 2013
Sum_{n>=1} (-1)^(n+1)/a(n) = log(2) (A002162). - Amiram Eldar, Feb 18 2024
MATHEMATICA
Floor[Log[2, 3*Range[100]]] (* Harvey P. Dale, Oct 15 2016 *)
PROG
(Haskell)
a085423 = a000523 . a008585 -- Reinhard Zumkeller, Mar 16 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Jun 30 2003
STATUS
approved