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.

A346658 Number of permutations of {0, 1, ..., n} that start with 0 and have pairwise distinct differences between adjacent terms.

Original entry on oeis.org

1, 1, 1, 3, 7, 27, 94, 425, 2100, 12252, 79865, 576220, 4532457, 38657929, 354600915, 3485914368, 36545825768, 407149542540
Offset: 0

Views

Author

Max Alekseyev, Jul 27 2021

Keywords

Comments

a(n) <= A131529(n).

Crossrefs

Cf. A131529.

Programs

  • PARI
    { A346658(n) = my(q,r=0); forperm(n,p, q=vector(n,i,p[i]-if(i>1,p[i-1])); r+=(#vecsort(q,,8)==n); ); r; }

Extensions

a(14)-a(17) from Martin Ehrenstein, Aug 01 2021