OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..338
FORMULA
a(n) = n * A308667(n) for n >= 1.
a(n) ~ exp(n - 1/2) * n^(n - 3/2) / sqrt(2*Pi). - Vaclav Kotesovec, Mar 28 2023
EXAMPLE
a(0) = 1: {}.
a(1) = 1: {1}.
a(2) = 2: {1,3}, {2,4}.
a(3) = 30: {1,2,3}, {1,2,6}, {1,2,9}, {1,3,5}, {1,3,8}, {1,4,7}, {1,5,6}, {1,5,9}, {1,6,8}, {1,8,9}, {2,3,4}, {2,3,7}, {2,4,6}, {2,4,9}, {2,5,8}, {2,6,7}, {2,7,9}, {3,4,5}, {3,4,8}, {3,5,7}, {3,6,9}, {3,7,8}, {4,5,6}, {4,5,9}, {4,6,8}, {4,8,9}, {5,6,7}, {5,7,9}, {6,7,8}, {7,8,9}.
MAPLE
with(numtheory):
a:= proc(n) option remember; `if`(n=0, 1, add(phi(n/d)*
(-1)^(n+d)*binomial(n*d, d), d=divisors(n))/n)
end:
seq(a(n), n=0..20);
MATHEMATICA
a[n_] := (-1)^n Sum[(-1)^d Binomial[d n, d] EulerPhi[n/d], {d, Divisors[n]} ]/n; a[0] = 1;
a /@ Range[0, 20] (* Jean-François Alcover, Sep 23 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 26 2018
STATUS
approved