OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..50
PROG
(PARI)
permcount(v) = {my(m=1, s=0, k=0, t); for(i=1, #v, t=v[i]; k=if(i>1&&t==v[i-1], k+1, 1); m*=t*k; s+=t); s!/m}
edges(v) = {2*sum(i=2, #v, sum(j=1, i-1, if(v[i]*v[j]%2==0, gcd(v[i], v[j])))) + sum(i=1, #v, if(v[i]%2==0, v[i]))}
a(n) = {my(s=0); forpart(p=n, s+=permcount(p)*5^edges(p)); s/n!} \\ Andrew Howroyd, Sep 17 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladeta Jovovic, Jan 21 2000
EXTENSIONS
Terms a(11) and beyond from Andrew Howroyd, Sep 17 2018
STATUS
approved