OFFSET
1,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..68
EXAMPLE
a(7) = a(1) a(2) a(3) a(6) (1/a(1) + 1/a(2) + 1/a(3) + 1/a(6)) = 1 *1 *2 *8 *(1 + 1 + 1/2 + 1/8) = 42.
MAPLE
with(numtheory):
a:= proc(n) option remember; `if`(n=1, 1, (l->
mul(a(i), i=l)*add(1/a(i), i=l))(divisors(n-1)))
end:
seq(a(n), n=1..25); # Alois P. Heinz, May 22 2015
MATHEMATICA
a[1] = 1;
a[n_] := a[n] = With[{k = a /@ Divisors[n-1]}, (Times @@ k)*Total[1/k]];
Array[a, 25] (* Jean-François Alcover, Mar 28 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 27 2002
STATUS
approved