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!)
A338418 a(n) is the number of length-n ballot sequences whose reversals are also ballot sequences. 2
1, 1, 1, 2, 3, 5, 11, 23, 50, 118, 283, 731, 1921, 5370, 14884, 43118, 130509, 397490, 1266010, 4077494, 13435445, 45687806, 157483627, 551205779, 1979511990 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Ballot sequences B have positive terms, and for any finite prefix P of B and any k > 0, the number of occurrences of k in P is greater than or equal to the number of occurrences of k+1 in P.
LINKS
FORMULA
a(n) >= A338417(n).
EXAMPLE
For n = 5:
- the reversals of the following length-5 ballot sequences are also ballot sequences:
(1, 1, 1, 1, 1)
(1, 1, 1, 2, 1)
(1, 1, 2, 1, 1)
(1, 2, 1, 1, 1)
(1, 2, 1, 2, 1)
- so a(5) = 5.
PROG
(C++) See Links section.
CROSSREFS
Sequence in context: A173927 A027763 A233694 * A261810 A176499 A175234
KEYWORD
nonn,more
AUTHOR
Rémy Sigrist, Oct 25 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 August 25 14:47 EDT 2024. Contains 375439 sequences. (Running on oeis4.)