cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A336562 Number of pairs sigma(p^x), sigma(q^y) that are not coprime, where p^x and q^y are any two maximal prime power divisors of n, with p < q. a(1) = 0.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 2, 0, 0, 3
Offset: 1

Views

Author

Antti Karttunen, Jul 27 2020

Keywords

Examples

			For n = 40 = 2^3 * 5^1, sigma(2^3) = 15 and sigma(5) = 6, so we have one such prime power pair that the gcd of their sum of divisors is larger than one (in this case gcd(15,6) = 3), thus a(40) = 1.
For n = 120 = 2^3 * 3^1 * 5^1, possible pairs are [sigma(8), sigma(3)], [sigma(8), sigma(5)] and [sigma(3), sigma(5)], with gcd(15,4) = 1, gcd(15,6) = 3 and gcd(4,6) = 2, thus there are two pairs that are not coprime, and a(120) = 2.
		

Crossrefs

Cf. A000203, A051027, A324892, A336355, A336356, A336546, A336547 (positions of zeros), A336548 (of nonzero terms).

Programs

  • PARI
    A336562(n) = if(1==n,0,my(f=factor(n),s=0); for(i=1,#f~,for(j=1+i,#f~,if(1!=gcd(sigma(f[i,1]^f[i,2]),sigma(f[j,1]^f[j,2])), s++))); (s));