cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A182216 Number of permutations sortable by a double-ended queue.

Original entry on oeis.org

1, 1, 2, 6, 24, 116, 634, 3762, 23638, 154816, 1046010, 7239440, 51069582, 365879686, 2654987356, 19473381290, 144138193538, 1075285161294, 8076634643892, 61028985689976, 463596673890280, 3538275218777642
Offset: 0

Views

Author

Paul Zimmermann, Apr 19 2012

Keywords

Examples

			Up to n=4 all permutations can be sorted by a double-ended queue (deque for short).
For n=5 the permutation 24351 cannot: you first queue 2 on either side, then 4 on either side, then 3 has to be queued on the same side as 4 otherwise it will "block" 2 between 3 and 4, but then whatever side you queue 5, you will block either 2 (between 4 and 5) or 3 (between 4 and 5).
		

Crossrefs

Extensions

a(13)-a(14) confirmed by Michael Albert, Apr 19 2012
a(16)-a(21) from Michael Albert, Jun 27 2012
a(0)=1 added by N. J. A. Sloane, Sep 12 2012

A215252 Number of indecomposable permutations sortable using two parallel stacks.

Original entry on oeis.org

0, 1, 1, 3, 12, 56, 289, 1602, 9367, 57075, 359346, 2323416, 15356446, 103389175, 707107627, 4901988047, 34384943850, 243694702311, 1742953208739, 12567593026554, 91280392585747, 667341975412356, 4907899368783645, 36289929612761691, 269660272111724536, 2012845416966620068, 15087243969226496324, 113521159338891300347, 857211201390859034536
Offset: 0

Views

Author

N. J. A. Sloane, Sep 07 2012. a(0)=0 added by N. J. A. Sloane, Sep 12 2012

Keywords

Comments

Suggested by Peter Doyle in an email message, Sep 04 2012

Crossrefs

Formula

INVERTi transform of A216040.

A216040 Number of permutations sortable using two parallel stacks.

Original entry on oeis.org

1, 1, 2, 6, 23, 103, 513, 2760, 15741, 93944, 581303, 3704045, 24180340, 161082639, 1091681427, 7508269793, 52302594344, 368422746908, 2620789110712, 18806093326963, 136000505625886, 990406677136685, 7258100272108212
Offset: 0

Views

Author

Peter Doyle, Aug 30 2012

Keywords

Examples

			Up to n = 4, the only permutation that can't be sorted is 2341. This fails because after moving 2 to one stack, you must move 3 to the other stack, and now the 4 will block either the 2 or the 3. (If you use a double-ended queue instead of two stacks, then this permutation becomes sortable; cf. A182216.)
		

Crossrefs

Extensions

a(0)=1 added by N. J. A. Sloane, Sep 12 2012
Showing 1-3 of 3 results.