A081290 a(0) = 0, and for n >=1, a(n) = the largest Catalan number <= n.
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
Offset: 0
Keywords
Programs
-
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 *)
Formula
Sum_{n>=1} 1/a(n)^2 = 44*Pi/sqrt(3) - 4*Pi^2 - 38. - Amiram Eldar, Aug 18 2022
Extensions
Name changed by Antti Karttunen, Apr 26 2014
Comments