OFFSET
0,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Li an-Ping, A note on the counterfeit coins problem, arXiv:0902.0841 [math.CO], 2009-2010.
MAPLE
seq(ceil(n*log[3](2)), n=0..120) ; # R. J. Mathar, Mar 14 2009
MATHEMATICA
With[{c=Log[3, 2]}, Ceiling[c*Range[0, 80]]] (* Harvey P. Dale, Aug 07 2015 *)
PROG
(Haskell)
a156301 = ceiling . (* logBase 3 2) . fromIntegral
-- Reinhard Zumkeller, Jul 03 2015
(Python)
from operator import sub
from sympy import integer_log
def A156301(n): return sub(*integer_log(1<<n, 3))+1 # Chai Wah Wu, Oct 09 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Feb 07 2009
EXTENSIONS
More terms from R. J. Mathar, Mar 14 2009
Edited by N. J. A. Sloane, May 23 2009 at the suggestion of Hagen von Eitzen
STATUS
approved