login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A338726 a(n) = Catalan(n) + 2^n - n - 1. 0
1, 1, 3, 9, 25, 68, 189, 549, 1677, 5364, 17809, 60822, 212095, 751078, 2690809, 9727597, 35423189, 129775844, 477900825, 1767787458, 6565168975, 24468364150, 91486757921, 343068002234, 1289920924515, 4861979955858, 18367420180989, 69533685133704, 263748220185787, 1002242753522250 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Matteo Cervetti and Luca Ferrari, Pattern avoidance in the matching pattern poset, arXiv:2009.01024 [math.CO], 2020.
FORMULA
G.f.: (1-sqrt(1-4*x))/(2*x) + 1/(1-2*x) - 1/(x-1)^2. - Alois P. Heinz, Dec 01 2020
D-finite with recurrence -(n+1)*(385*n-1369)*a(n) +2*(1651*n^2 -6079*n +1369)*a(n-1) +(-9639*n^2 +44846*n -43507)*a(n-2) +2*(5789*n^2 -31763*n +43223)*a(n-3) -4*(607*n -1524)*(2*n-7)*a(n-4)=0. - R. J. Mathar, Dec 11 2020
a(n) = A000108(n) + A000295(n). - Omar E. Pol, Dec 11 2020
MAPLE
a:= proc(n) option remember; `if`(n<4, ceil(3^(n-1)),
((2*(1651*n^2-6079*n+1369))*a(n-1)-(9639*n^2-44846*n+43507)*
a(n-2)+(2*(5789*n^2-31763*n+43223))*a(n-3)-(4*(607*n-1524))*
(2*n-7)*a(n-4))/((n+1)*(385*n-1369)))
end:
seq(a(n), n=0..30); # Alois P. Heinz, Dec 05 2020
MATHEMATICA
Table[CatalanNumber[n]+2^n-n-1, {n, 0, 30}] (* Harvey P. Dale, Nov 24 2022 *)
CROSSREFS
Sequence in context: A295571 A291019 A236570 * A323362 A201533 A000242
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 30 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 27 04:46 EDT 2024. Contains 373727 sequences. (Running on oeis4.)