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.

A006967 Number of graceful permutations of length n.

Original entry on oeis.org

1, 1, 2, 4, 4, 8, 24, 32, 40, 120, 296, 648, 1328, 3200, 9912, 25592, 55920, 143192, 510696, 1451296, 3497344, 10451824, 38570704, 118914992, 315235872, 1014824752, 3963684496, 13166130152, 37846301904, 130507967088, 533318630936, 1884550215976, 5800121391936
Offset: 0

Views

Author

Keywords

Comments

Also the number of graceful labelings of the path graph P_n. - Eric W. Weisstein, Mar 31 2020

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • H. S. Wilf and N. Yoshimura, Ranking rooted trees and a graceful application, in Discrete Algorithms and Complexity (Proceedings of the Japan-US joint seminar, 1986, Kyoto, Japan), edited by D. Johnson, T. Nishizeki, A. Nozaki and H. S. Wilf, Academic Press, NY, 1987, pp. 341-350.

Crossrefs

Cf. A084894.

Programs

  • CWEB
    @ See Knuth link.

Formula

a(n) = n! - A084894(n). - Jon Perry, Jun 10 2003

Extensions

n=2 term corrected June 1996
a(11)-a(20) from Robert Aldred and Brendan McKay
More terms from Michal Adamaszek (aszek(AT)mimuw.edu.pl), Aug 22 2006
a(0)=1 prepended by Alois P. Heinz, Jan 31 2020
a(41)=1032009647743958000 from Don Knuth, Sep 10 2020