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.

A327845 Number of permutations of {1,2,...,n} such that for every k >= 1, the k-th differences are distinct.

Original entry on oeis.org

1, 2, 4, 12, 40, 132, 428, 1668, 7628, 36924, 199000, 1161824, 7231332
Offset: 1

Views

Author

Peter Kagey, Sep 27 2019

Keywords

Comments

a(n) <= A131529(n).

Examples

			For n = 5 the a(5) = 40 solutions are one of following ten permutations, or a reversal, complement, or reversal and complement of one of these permutations:
[1,3,4,2,5]
[1,4,3,5,2]
[1,4,5,3,2]
[1,5,2,4,3]
[1,5,3,2,4]
[2,1,4,5,3]
[2,1,5,3,4]
[2,3,5,1,4]
[2,4,1,5,3]
[2,5,4,1,3]
As a non-example, [1,5,4,2,3] does not satisfy the k-th differences property, because while its first differences ([4,-1,-2,1]) and its second differences ([-5,-1,3]) are distinct, its third differences ([4,4]) are not.
		

Crossrefs

Extensions

a(11) from Giovanni Resta, Sep 29 2019
a(12)-a(13) from Freddy Barrera, Oct 07 2019