OFFSET
0,3
COMMENTS
A peak plateau is a run of consecutive peaks that is preceded by an upstep U and followed by a down step D; a peak consists of an upstep followed by a downstep.
FORMULA
a(n) = A166285(n,0).
G.f.: G(z) satisfies G = 1 + zG + z^2*G + z^3*G[G - 1/(1-z)].
D-finite with recurrence (n+3)*a(n) +(-5*n-9)*a(n-1) +2*(4*n+3)*a(n-2) -4*n*a(n-3) +2*(-2*n+9)*a(n-5) +2*(4*n-21)*a(n-6) +4*(-n+6)*a(n-7)=0. - R. J. Mathar, Jul 22 2022
EXAMPLE
a(3)=3 because we have UDUDUD, UDUUDD, and UUDDUD (UUDUDD is a peak plateau).
MAPLE
F := RootOf(G = 1+z*G+z^2*G+z^3*G*(G-1/(1-z)), G): Fser := series(F, z = 0, 35): seq(coeff(Fser, z, n), n = 0 .. 32);
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Oct 12 2009
STATUS
approved