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”).

A081288
a(n) is the minimal i such that A000108(i) > n.
9
0, 2, 3, 3, 3, 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, 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, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
OFFSET
0,2
COMMENTS
Apart from the initial term 0, each n occurs A000245(n-1) times.
PROG
(Python)
from sympy import catalan
def a(n):
if n==0: return 0
i=1
while True:
if catalan(i)>n: return i
else: i+=1
print([a(n) for n in range(101)]) # Indranil Ghosh, Jun 08 2017
(PARI) A081288(n) = my(i=0); while(binomial(2*i, i)/(i+1) <= n, i++); i; \\ Michel Marcus, Apr 28 2020
CROSSREFS
Cf. A000108, A000245, A072643, A081289, A081290. Used to compute A081291.
Sequence in context: A084516 A084526 A356593 * A130256 A335741 A103586
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 17 2003
STATUS
approved