OFFSET
0,5
COMMENTS
See A318810 for a definition of necklace permutation.
REFERENCES
F. Harary and E. Palmer, Graphical Enumeration, Academic Press, 1973, pages 36-37, 42-43.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..2713 (rows 0..20)
Math StackExchange, Marko Riedel et. al, Free circular permutations
Marko Riedel, Maple code for sequence by PET and closed form.
FORMULA
EXAMPLE
The ordering of the partitions used here is graded reflected lexicographic illustrated below with n=5:
1,1,1,1,1 => 24
1,1,1,2 => 12
1,2,2 => 6
1,1,3 => 4
2,3 => 2
1,4 => 1
5 => 1
Table begins:
1
1
1,1
2,1,1
6,3,2,1,1
24,12,6,4,2,1,1
PROG
(PARI)
C(sig)={my(n=vecsum(sig)); if(n==0, 1, sumdiv(gcd(sig), d, eulerphi(d)*(n/d)!/prod(i=1, #sig, (sig[i]/d)!))/n)}
Row(n)={apply(C, vecsort([Vecrev(p) | p<-partitions(n)]))} \\ Andrew Howroyd, Jan 23 2025
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Marko Riedel, Jan 23 2025
EXTENSIONS
a(0)=1 prepended by Andrew Howroyd, Nov 18 2025
STATUS
approved
