OFFSET
1,4
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
For n = 16: only {1,16} are unitary, while {2,4,8} are non-unitary divisors, so a(16) = 64.
When all divisors are unitary, then A048105 is 0 and the corresponding terms here are equal to 1.
MATHEMATICA
Table[Times @@ Select[Divisors@ n, ! CoprimeQ[#, n/#] &], {n, 79}] (* Michael De Vlieger, Mar 17 2017 *)
a[n_] := n^((DivisorSigma[0, n] - 2^PrimeNu[n]) / 2); Array[a, 80] (* Amiram Eldar, Jul 22 2024 *)
PROG
(PARI) { for (n=1, 1000, s=divisors(n); a=1; for (i=2, length(s), d=s[i]; if (gcd(d, n/d)!=1, a*=d)); write("b061538.txt", n, " ", a) ) } \\ Harry J. Smith, Jul 24 2009
(PARI) a(n) = {my(f = factor(n)); n^((numdiv(f) - 2^omega(f))/2); } \\ Amiram Eldar, Jul 22 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 15 2001
EXTENSIONS
Corrected and edited by Jaroslav Krizek, Mar 05 2009
STATUS
approved