OFFSET
1,6
COMMENTS
a(n) = 0 if and only if n is noncomposite.
FORMULA
a(n) = Sum_{k=1..floor(n/2)} Sum_{i=1..k-1} c(k/i) * c(n/k) * c(n/i), where c(n) = 1 - ceiling(n) + floor(n).
EXAMPLE
a(12) = 7; The 7 pairs are (1,2), (1,3), (1,4), (1,6), (2,4), (2,6), (3,6).
MATHEMATICA
Table[Sum[Sum[(1 - Ceiling[k/i] + Floor[k/i]) (1 - Ceiling[n/k] + Floor[n/k]) (1 - Ceiling[n/i] + Floor[n/i]), {i, k - 1}], {k, Floor[n/2]}], {n, 100}]
PROG
(PARI) a(n) = sumdiv(n, d1, sumdiv(n, d2, if ((d1 < d2) && (d1+d2 <= n) && !(d2 % d1), 1))); \\ Michel Marcus, May 02 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 02 2021
STATUS
approved