

A081290


a(0) = 0, and for n >=1, a(n) = the largest Catalan number <= n.


11



0, 1, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,3


COMMENTS

After n>0, A000108(n) occurs A000245(n) times.
For all n>0, a(A000108(n)) = A000108(n) [the first occurrence of the nth Catalan number in this sequence].
Minimal i such that A081289(i) >= A081289(n) [the original definition of the sequence].
In other words, the first position k in A081289 where A081289(n) occurs (the minimal k such that A081289(k) = A081289(n)), and also the first position k in A081288 where A081288(n) occurs (the minimal k such that A081288(k) = A081288(n)). The starting point of the run which contains the nth term in those sequences.


LINKS

Table of n, a(n) for n=0..73.


FORMULA

a(0) = 0, a(n) = A000108(A081288(n)1).


MATHEMATICA

Join[{0}, With[{catnos=Reverse[CatalanNumber[Range[10]]]}, Table[ SelectFirst[ catnos, #<=n&], {n, 80}]]] (* This program uses the SelectFirst function from Mathematica version 10 *) (* Harvey P. Dale, Jul 27 2014 *)


CROSSREFS

Cf. A000108, A081288, A081289, A072643, A239903.
Sequence in context: A098101 A257670 A105960 * A168256 A123081 A020917
Adjacent sequences: A081287 A081288 A081289 * A081291 A081292 A081293


KEYWORD

nonn


AUTHOR

Antti Karttunen, Mar 17 2003


EXTENSIONS

Name changed by Antti Karttunen, Apr 26 2014


STATUS

approved



