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!)
A294281 Number of ascent sequences of length n with alternating ascents and descents (unaffected by level steps). 2
1, 1, 2, 4, 9, 22, 59, 172, 547, 1886, 7047, 28360, 122675, 567210, 2796999, 14641044, 81191947, 475148678, 2929442263, 18965690560, 128754649699, 914056305794, 6777666961735, 52367331911180, 421188392986843, 3519168714308702, 30519733808467031 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = Sum_{j=0..n} binomial(n-1,j) * A099960(n-j).
EXAMPLE
a(3) = 4: 000, 001, 010, 011.
a(4) = 9: 0000, 0001, 0010, 0011, 0100, 0101, 0102, 0110, 0111.
a(5) = 22: 00000, 00001, 00010, 00011, 00100, 00101, 00102, 00110, 00111, 01000, 01001, 01002, 01010, 01011, 01020, 01021, 01022, 01100, 01101, 01102, 01110, 01111.
MAPLE
b:= proc(n, i, t, u) option remember; `if`(n<1, 1, add(
b(n-1, j, t+`if`(j>i, 1, 0), `if`(i=j, u, 1-u)),
j=`if`(u=0, i..t+1, 0..i)))
end:
a:= n-> b(n-1, 0$3):
seq(a(n), n=0..30);
CROSSREFS
Sequence in context: A237770 A187044 A193361 * A293854 A271078 A292790
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Oct 26 2017
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 April 18 04:31 EDT 2024. Contains 371767 sequences. (Running on oeis4.)