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.

A249249 Total number of occurrences of the consecutive step pattern given by the binary expansion of n (where 1=up and 0=down) in all permutations of [n].

Table of values

n a(n)
0 0
1 0
2 0
3 1
4 3
5 50
6 270
7 840
8 5376
9 166320
10 2903040
11 20956320
12 191600640
13 4203239040
14 29059430400
15 119870150400
16 1598268672000
17 112634352230400
18 4623936565248000
19 61498356317798400
20 1773991047628800000
21 69256610499428352000
22 1061556242901073920000

List of values

[0, 0, 0, 1, 3, 50, 270, 840, 5376, 166320, 2903040, 20956320, 191600640, 4203239040, 29059430400, 119870150400, 1598268672000, 112634352230400, 4623936565248000, 61498356317798400, 1773991047628800000, 69256610499428352000, 1061556242901073920000]