OFFSET
1,2
COMMENTS
If D_n is the set of all positive divisors of n, then a(n) gives the number of all subsets of D_n for which the product of all their elements is a divisor of n. a(n) depends only on the prime signature of n.
LINKS
Reiner Moewald, Table of n, a(n) for n = 1..2159
FORMULA
a(p) = 3, for p prime. - Michel Marcus, Nov 07 2014
EXAMPLE
a(2) = 3: -2x+2; -x+2; x^2 - 3x + 2.
PROG
(PARI) padbin(n, len) = {b = binary(n); while(length(b) < len, b = concat(0, b); ); b; }
a(n) = {d = divisors(n); nbd = #d; nbts = 2^nbd-1; nbs = 0; for (i=1, nbts, bin = padbin(i, nbd); prd = prod(j=1, nbd, if (bin[j], d[j], 1)); if (n % prd == 0, nbs++); ); nbs; } \\ Michel Marcus, Nov 07 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Reiner Moewald, Oct 17 2014
STATUS
approved