A235644 Number of decompositions of 12*n into the sum of two (not necessarily distinct) twin prime pairs.
0, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2, 2, 0, 2, 1, 3, 3, 1, 2, 1, 3, 2, 2, 2, 3, 1, 3, 1, 2, 3, 3, 6, 2, 3, 1, 2, 4, 3, 4, 4, 1, 3, 2, 3, 5, 2, 7, 1, 3, 2, 2, 5, 2, 5, 2, 3, 2, 2, 3, 5, 3, 4, 1, 0, 3, 1, 6, 2, 3, 3, 1, 5, 2, 5, 3, 3, 4, 1, 4
Offset: 1
Keywords
Examples
a(736) = 2 because 12*736 = 197 + 199 + 4217 + 4219 = 857 + 859 + 3557 + 3559, so there are 2 ways of expressing 12*n as the sum of two twin prime pairs.
References
- Liang Ding Xiang, Problem 93#, Bulletin of Mathematics (Wuhan), 6(1992),41. ISSN 0488-7395.
Programs
-
PARI
v=select(p->isprime(p-2)&&p>5, primes(200))\6; l=List(); for(i=1, #v, if(2*v[i]<100, listput(l, 2*v[i])); for(j=i+1, #v, if((v[i]+v[j])<100, listput(l, v[i]+v[j])))); l1=vecsort(l); k=1; for(i=1, 100, s=sum(j=k, #l1, l1[j]==i); print1(s", "); k+=s) \\ Lear Young, Jun 16 2014
-
PARI
v=select(p->isprime(p-2)&&p>5,primes(110))\6;for(i=1, 99, print1(sum(j=1,#v,vecsearch(v,i-v[j])>0 && i-v[j]>=v[j])", ")) \\ change i-v[j]>=v[j] to i-v[j]>v[j] is A187759. Lear Young, Jun 16 2014
Comments