OFFSET
2,1
COMMENTS
b(n) = the number of exterior top arches for all semi-meanders with n top arches and floor((n+2)/2) exterior top arches = (floor(n/2)+1) * 2^(floor((n-1)/2)). For n>=2, lim_{n->oo} a(n)/b(n) = 3.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 4, 0, -4).
FORMULA
a(n) = (2*n-floor((n-1)/2)) * 2^floor((n-1)/2).
EXAMPLE
For n=4, the number of semi-meanders with 4 top arches and 3 exterior top arches is equal to A259689(4,3) = 2:
/\ /\
/\ /\ //\\, //\\ /\ /\ = 6 exterior arches. These 6 arches will generate 6 solutions in the n+1 generation using the exterior arch splitting algorithm.
_____ __ __ _____
/ /\\ /\ //\\ _____ _____ //\\ /\ //\ \
/\ //\ //\\\, //\\ ///\\\, //\ /\\ /\ /\, /\ /\ //\ /\\, ///\\\ //\\, ///\\ /\\ /\
These 6 solutions have 14 exterior arches. Therefore a(4) = 14.
MATHEMATICA
a[n_]:=(2*n-Floor[(n-1)/2]) * 2^Floor[(n-1)/2]; Array[a, 36, 2] (* Stefano Spezia, Sep 16 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger Ford, Sep 15 2023
EXTENSIONS
a(30) corrected by Georg Fischer, Jun 03 2024
STATUS
approved