OFFSET
1,1
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n = 1..359
EXAMPLE
For n=6, the set of divisors is {1,2,3,6} and the a(6)=10 subsets with pairwise coprime entries are {}, {1}, {2}, {3}, {6}, {1,2}, {1,3}, {1,6}, {2,3} and {1,2,3}.
MAPLE
paircoprime := proc(s)
local L, i, j ;
L := convert(s, list) ;
for i from 1 to nops(L)-1 do
for j from i+1 to nops(L) do
if igcd(op(i, L), op(j, L)) <> 1 then
return false;
end if;
end do:
end do:
return true;
end proc:
A225520 := proc(n)
local dvs, a, p ;
dvs := numtheory[divisors](n) ;
a := 0 ;
for p in combinat[powerset](dvs) do
if paircoprime(p) then
a := a+1 ;
end if;
end do:
a ;
end proc:
MATHEMATICA
Table[Length[Select[Subsets[Divisors[n]], If[Length[#] < 2, True, If[Length[#] == 2, CoprimeQ @@ #, And @@ CoprimeQ @@ #]]] &]], {n, 100}] (* T. D. Noe, May 09 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. J. Mathar, May 09 2013
STATUS
approved