A369055 Number of representations of 4n-1 as a sum (p*q + p*r + q*r) with three odd primes p <= q <= r.
0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 2, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 2, 1, 0, 1, 1, 0, 0, 2, 2, 1, 0, 0, 2, 0, 0, 0, 1, 1, 2, 2, 1, 1, 0, 1, 2, 0, 0, 0, 3, 0, 1, 0, 2, 1, 2, 0, 3, 1, 1, 1, 0, 0, 1, 1, 0, 2, 0, 0, 5, 2, 0, 0, 2, 1, 1, 0, 2, 0, 1, 1, 2, 2, 0, 2, 1, 0, 2, 0, 3, 1, 0, 0, 4, 1, 0, 1
Offset: 1
Keywords
Examples
a(7) = 1 because 4*7 - 1 = 27, which can be represented as a sum of the form (p*q) + (p*r) + (q*r), with all three primes p, q and r = 3. a(19) = 2 because 4*19 - 1 = 75, which can be represented as a sum of the form (p*q) + (p*r) + (q*r) in two ways, with p=3, q=3 and r=11, or with p = q = r = 5. a(9999995) = 0 because (4*9999995)-1 = 39999979, which cannot be expressed as a sum (p*q) + (p*r) + (q*r) for any three odd primes p, q and r, whether distinct or not.
Links
- Antti Karttunen, Table of n, a(n) for n = 1..100000
- Victor Ufnarovski and Bo Ahlander, How to Differentiate a Number, J. Integer Seqs., Vol. 6, 2003.
- Eric Weisstein's World of Mathematics, Goldbach Conjecture.
- Index entries for sequences related to Goldbach conjecture
Crossrefs
Programs
-
PARI
\\ We iterate over weakly increasing triplets of odd primes: A369055list(up_to) = { my(v = [3,3,3], ip = #v, d, u = vector(up_to), lim = -1+(4*up_to)); while(1, d = ((v[1]*v[2]) + (v[1]*v[3]) + (v[2]*v[3])); if(d > lim, ip--, ip = #v; u[(d+1)/4]++); if(!ip, return(u)); v[ip] = nextprime(1+v[ip]); for(i=1+ip,#v,v[i]=v[i-1])); }; v369055 = A369055list(100001); A369055(n) = v369055[n];
Comments