A157721 a(n) = 0 if n is 1 or a prime, otherwise a(n) = product of composite (nonprime) divisors of n.
0, 0, 0, 4, 0, 6, 0, 32, 9, 10, 0, 288, 0, 14, 15, 512, 0, 972, 0, 800, 21, 22, 0, 55296, 25, 26, 243, 1568, 0, 27000, 0, 16384, 33, 34, 35, 1679616, 0, 38, 39, 256000, 0, 74088, 0, 3872, 6075, 46, 0, 42467328, 49, 12500, 51, 5408, 0, 1417176, 55, 702464, 57, 58, 0
Offset: 1
Examples
a(12) = 4*6*12 = 288, composite divisors = {4,6,12}.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
f:= proc(n) if isprime(n) then 0 else convert(remove(isprime,numtheory:-divisors(n)),`*`) fi end proc; f(1):= 0: map(f, [$1..100]); # Robert Israel, Jul 31 2024
-
Mathematica
f[n_] := If[n == 1 || PrimeQ@n, 0, Times @@ Select[Divisors@n, ! PrimeQ@# &]]; Array[f, 60] (* Robert G. Wilson v, May 04 2009 *)
Extensions
More terms from Robert G. Wilson v, May 04 2009
Comments