|
|
A004204
|
|
Number of permutations of length n with spread 0.
(Formerly M3569)
|
|
2
|
|
|
1, 1, 0, 4, 20, 144, 630, 5696, 39366, 366400, 3634950, 39066624, 479163828, 6226534272, 87238701000, 1315130458112, 20922813624336, 355586138666496, 6402373841107998, 121479626301440000
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,4
|
|
COMMENTS
|
The spread of a permutation p is the sum of i*p(i) over 0 <= i < n, reduced modulo n. - Rintaro Matsuo, Nov 26 2022
|
|
REFERENCES
|
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
|
|
LINKS
|
|
|
PROG
|
(PARI) a(n) = my(v=[1..n], nb=0); forperm(v, p, if (sum(i=1, n-1, Mod(i, n)*p[i]) == 0, nb++)); nb; \\ Michel Marcus, Nov 30 2022
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
More terms from Herman Jamke (hermanjamke(AT)fastmail.fm), May 17 2007
|
|
STATUS
|
approved
|
|
|
|