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.

A338986 Number of rooted graceful permutations of length n.

This page as a plain text file.
%I A338986 #19 Dec 21 2020 06:49:22
%S A338986 1,1,2,4,4,8,12,4,12,12,16,20,28,12,12,60,16,20,40,48,48,52,44,76,52,
%T A338986 72,80,68,60,136,148,152,72,216,116,140,116,184,408,176,404,288,412,
%U A338986 440,356,384,464,256,704,444,812,560,348,904,800,1088,628,716,868
%N A338986 Number of rooted graceful permutations of length n.
%C A338986 A permutation p[1]...p[n] of {1,...n} is graceful if the n-1 differences |p[j+1] -p[j]| are distinct. It is rooted if, in addition, |p[j+1] - p[j]| = k < n-1 implies that either |p[j] - p[j-1]| > k or |p[j+2] - p[j+1]| > k.
%H A338986 Don Knuth, <a href="/A338986/b338986.txt">Table of n, a(n) for n = 0..173</a>
%e A338986 For n = 6 the a(6) = 12 solutions are 162534, 251643, 316254, 325164, 342516, 346152, 431625, 435261, 452613, 461523, 526134, 615243.
%Y A338986 A006967 counts all graceful permutations.
%Y A338986 If n > 2, a(n) = 4*A338988(n).
%K A338986 nonn
%O A338986 0,3
%A A338986 _Don Knuth_, Dec 20 2020