OFFSET
1,2
COMMENTS
See A126959.
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..61
EXAMPLE
a(2) = 3 = #{ i*j, i=1..2, j=1..2 } = #{ 1,2, 2,4 } = #{1,2,4}
a(3) = 12 = #{ 1,2,3,4,5,6, 2,4,6,8,10,12, 3,6,9,12,15,18 } = #{ 1,2,3,4,5,6,8,9,10,12,15,18 }
MAPLE
p:=proc(n) option remember; local s, t, i, j: s:=1; t:={}:
for i from n-1 by -1 to 1+n/(min@op@eval@numtheory[factorset])(n) do
t := t union { ilcm(n, i)/n };
t := select( x-> numtheory[divisors](x) intersect t = { x }, t ):
for j in combinat[powerset](t) do s := s+(-1)^nops(j)/ilcm(op(j)) od:
od; s/n end:
a:= k -> ilcm($2..k)*add( p(n), n=1..k);
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Mar 22 2007
STATUS
approved