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
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 17 2003
STATUS
approved