OFFSET
0,3
LINKS
Peter Luschny, Swinging Primes.
EXAMPLE
The set of positive divisors of 3 is {1,3}. Thus a(3) = 1$ * 3$ = 1 * 6 = 6.
MAPLE
a := proc(n) local i; mul(i, i=map(swing, numtheory[divisors](n))) end:
MATHEMATICA
sf[n_] := With[{f = Floor[n/2]}, Pochhammer[f+1, n-f]/f!]; a[0] = 1; a[n_] := Product[sf[k], {k, Divisors[n]}]; Table[a[n], {n, 0, 26}] (* Jean-François Alcover, Jul 26 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Jul 21 2009
STATUS
approved