A081060 Product of differences of distinct prime factors of n.
1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 5, 2, 1, 1, 1, 1, 3, 4, 9, 1, 1, 1, 11, 1, 5, 1, 6, 1, 1, 8, 15, 2, 1, 1, 17, 10, 3, 1, 20, 1, 9, 2, 21, 1, 1, 1, 3, 14, 11, 1, 1, 6, 5, 16, 27, 1, 6, 1, 29, 4, 1, 8, 72, 1, 15, 20, 30, 1, 1, 1, 35, 2, 17, 4, 110, 1, 3, 1, 39, 1, 20, 12, 41, 26, 9, 1, 6, 6, 21, 28
Offset: 1
Keywords
Examples
a(42) = a(2*3*7) = |2-3|*|2-7|*|3-7| = 1*5*4 = 20.
Links
- Antti Karttunen, Table of n, a(n) for n = 1..65537
Programs
-
Mathematica
a[n_] := Times @@ Flatten[Differences@# & /@ Subsets[First@# & /@ FactorInteger@n, {2}]]; Array[a, 90] (* Robert G. Wilson v, Aug 06 2018 *)
-
PARI
A081060(n) = if(omega(n)<=1,1,my(ps = factor(n)[, 1]~, m=1); for(i=1,(#ps)-1,for(j=i+1,#ps, m *= (ps[j]-ps[i]))); (m)); \\ Antti Karttunen, Aug 06 2018
Formula
a(n) = Product(abs(p-q): p, q distinct prime factors of n).
Comments