OFFSET
1,2
COMMENTS
Second column of A201730.
Number of non-selfintersecting broken lines in a convex (n+1)-gon. (National Math Contest "Atanas Radev" 2020, Bulgaria) - Ivaylo Kortezov, Jan 18 2020
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Jean-Luc Baril, Pamela E. Harris, and José L. Ramírez, Flattened Catalan Words, arXiv:2405.05357 [math.CO], 2024. See p. 21.
Ivaylo Kortezov, problem 8.4 ("Задача 8.4" in Bulgarian) in National Math Contest "Atanas Radev" 2020.
Mark Shattuck, Enumeration of consecutive patterns in flattened Catalan words, arXiv:2502.10661 [math.CO], 2025. See pp. 3, 6.
Index entries for linear recurrences with constant coefficients, signature (8,-22,24,-9).
FORMULA
G.f.: -x*(-1 + 2*x) / ( (3*x - 1)^2*(x - 1)^2 ).
a(n) = Sum_{k = 0..(n - 1)} binomial(n + 1, k + 2)*A001792(k). - Ivaylo Kortezov, Jan 21 2020
E.g.f.: exp(x)*(exp(2*x)*(1 + 3*x) - x - 1)/4. - Stefano Spezia, May 14 2024
MATHEMATICA
LinearRecurrence[{8, -22, 24, -9}, {1, 6, 26, 100}, 30] (* Vincenzo Librandi, Aug 31 2016 *)
Table[(3^n - 1)(n + 1)/4, {n, 0, 39}] (* Alonso del Arte, Jan 19 2020 *)
PROG
(PARI) first(m)=vector(m, i, (3^i-1)*(i+1)/4); /* Anders Hellström, Aug 08 2015 */
(Magma) [(3^n-1)*(n+1)/4: n in [1..30]]; // Vincenzo Librandi, Aug 31 2016
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
R. J. Mathar, Aug 08 2015
STATUS
approved