OFFSET
1,2
FORMULA
a(n) = Sum_{d1|n, d2|n} mu(d1 + d2)^2.
EXAMPLE
a(6) = 8; There are 8 ordered pairs of divisors of 6 whose sum is squarefree: (1,1), (1,2), (1,6), (2,1), (2,3), (3,2), (3,3), (6,1).
MATHEMATICA
a[n_] := Count[Tuples[Divisors[n], 2], _?(SquareFreeQ[Total[#]] &)]; Array[a, 80] (* Amiram Eldar, Feb 05 2022 *)
PROG
(PARI) a(n) = my(d=divisors(n)); sum (i=1, #d, sum (j=1, #d, issquarefree(d[i]+d[j]))); \\ Michel Marcus, Feb 05 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Feb 04 2022
STATUS
approved