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.

A334780 Total number of local maxima in all permutations of 2 indistinguishable copies of 1..n arranged in a circle.

Original entry on oeis.org

1, 8, 168, 6336, 360000, 28728000, 3067243200, 422479411200, 72968229734400, 15446903472000000, 3933958530902400000, 1186723982675911680000, 418497083472072084480000, 170595438771094235458560000, 79604772050991371184000000000, 42160341403338557272473600000000
Offset: 1

Views

Author

Andrew Howroyd, May 13 2020

Keywords

Crossrefs

Cf. A334778.

Programs

  • PARI
    \\ CircPeaksBySig defined in A334778.
    a(n)={my(u=CircPeaksBySig(vector(n, i, 2), [1..n])); sum(k=1, #u, k*u[k])}

Formula

a(n) = Sum_{k=1..n} k*A334778(n,k).