login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Number of triples of divisors d_i < d_j < d_k of n such that gcd(d_i, d_j, d_k) > 1.
3

%I #28 Nov 01 2020 04:11:41

%S 0,0,0,0,0,0,0,1,0,0,0,5,0,0,0,4,0,5,0,5,0,0,0,23,0,0,1,5,0,12,0,10,0,

%T 0,0,36,0,0,0,23,0,12,0,5,5,0,0,62,0,5,0,5,0,23,0,23,0,0,0,87,0,0,5,

%U 20,0,12,0,5,0,12,0,120,0,0,5,5,0,12,0,62,4

%N Number of triples of divisors d_i < d_j < d_k of n such that gcd(d_i, d_j, d_k) > 1.

%C Number of elements in the set {(x, y, z): x|n, y|n, z|n, x < y < z, GCD(x, y, z) > 1}.

%C Every element of the sequence is repeated indefinitely, for instance:

%C a(n) = 0 for n = 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, ... (Numbers with at most 2 prime factors (counted with multiplicity). See A037143);

%C a(n) = 1 for n = 8, 27, 125, 343, 1331, 2197, 4913,... (cubes of primes. See A030078);

%C a(n) = 4 for n = 16, 81, 625, 2401, 14641, 28561, ... (prime(n)^4. See A030514);

%C a(n) = 5 for n = 12, 18, 20, 28, 44, 45, ... (Numbers which are the product of a prime and the square of a different prime (p^2 * q). See A054753);

%C a(n) = 12 for n = 30, 42, 66, 70, 78, 102, 105, 110,... (Sphenic numbers: products of 3 distinct primes. See A007304);

%C a(n) = 20 for n = 64, 729, 15625, 117649, ... (Numbers with 7 divisors. 6th powers of primes. See A030516);

%C a(n) = 23 for n = 24, 40, 54, 56, 88, 104, 135, 136, ... (Product of the cube of a prime (A030078) and a different prime. See A065036);

%C a(n) = 36 for n = 36, 100, 196, 225, 441, 484, 676,... (Squares of the squarefree semiprimes (p^2*q^2). See A085986);

%C a(n) = 62 for n = 48, 80, 112, 162, 176, 208, 272, ... (Product of the 4th power of a prime (A030514) and a different prime (p^4*q). See A178739);

%C a(n) = 87 for n = 60, 84, 90, 126, 132, 140, 150, 156, ... (Product of exactly four primes, three of which are distinct (p^2*q*r). See A085987);

%C a(n) = 120 for n = 72, 108, 200, 392, 500, 675, 968, ... (Numbers of the form p^2*q^3, where p,q are distinct primes. See A143610);

%C It is possible to continue with a(n) = 130, 235, 284, 289, 356, ...

%H David A. Corneth, <a href="/A336530/b336530.txt">Table of n, a(n) for n = 1..10000</a>

%e a(12) = 5 because the divisors of 12 are {1, 2, 3, 4, 6, 12} and GCD(d_i, d_j, d_k) > 1 for the 5 following triples of divisors: (2,4,6), (2,4,12), (2,6,12), (3,6,12) and (4,6,12).

%p with(numtheory):nn:=100:

%p for n from 1 to nn do:

%p it:=0:d:=divisors(n):n0:=nops(d):

%p for i from 1 to n0-2 do:

%p for j from i+1 to n0-1 do:

%p for k from j+1 to n0 do:

%p if igcd(d[i],d[j],d[k])> 1

%p then

%p it:=it+1:

%p else

%p fi:

%p od:

%p od:

%p od:

%p printf(`%d, `,it):

%p od:

%t Array[Count[GCD @@ # & /@ Subsets[Divisors[#], {3}], _?(# > 1 &)] &, 81] (* _Michael De Vlieger_, Oct 05 2020 *)

%o (PARI) a(n) = my(d=divisors(n)); sum(i=1, #d-2, sum (j=i+1, #d-1, sum (k=j+1, #d, gcd([d[i], d[j], d[k]]) > 1))); \\ _Michel Marcus_, Oct 31 2020

%o (PARI) a(n) = {my(f = factor(n), vp = vecprod(f[,1]), d = divisors(vp), res = 0);

%o for(i = 2, #d, res-=binomial(numdiv(n/d[i]), 3)*(-1)^omega(d[i])); res} \\ _David A. Corneth_, Nov 01 2020

%Y Cf. A275387.

%K nonn

%O 1,12

%A _Michel Lagneau_, Oct 04 2020

%E Name clarified by editors, Oct 31 2020