OFFSET
0,3
COMMENTS
After a(0), if the leftmost digit in the Greedy Catalan Base representation of n [= A014418(n)] is larger than 1, then a(n) = 0, otherwise one more than the distance to the next nonzero digit to the right, or to the end of the numeral, if no more nonzero digits are present (i.e., if n is one of the Catalan numbers).
When searching for the two largest Catalan numbers whose sum is less than or equal to n, we first maximize the larger of those two numbers, which is A081290(n) = A000108(A244160(n)), after which we will find the next largest Catalan number that still "fits into" n. - Antti Karttunen, Mar 21 2015
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..4862
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 23 2014
EXTENSIONS
Name improved by Antti Karttunen, Mar 21 2015
STATUS
approved