login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A225940
Numbers n such that prime(n) divides prime(2*n) + prime(3*n).
0
1, 4, 67, 84, 88
OFFSET
1,2
COMMENTS
Almost surely the sequence is finite and complete, since the ratio (p(3n)+p(2n))/p(n) tends to 5 from above. For n = 5*10^9 the ratio is 5.19958, for n = 10^100 we can estimate it as 5.02. - Giovanni Resta, May 22 2013
EXAMPLE
Prime(4)=7 divides prime(8)+prime(12)=19+37=56, so 4 is in the sequence.
MATHEMATICA
Select[Range[100], Divisible[Prime[2#]+Prime[3#], Prime[#]]&] (* Harvey P. Dale, Feb 26 2017 *)
PROG
(C)
#include <stdio.h>
#define TOP (1ULL<<32)
typedef unsigned long long U64;
int main() {
U64 i, j, k, n=1, *primes = (U64*)malloc(TOP);
char *c = (char*)malloc(TOP/2);
memset(c, 0, TOP/2);
for (primes[0] = 2, i = 3; i < TOP; i+=2)
if (c[i>>1]==0) {
primes[n++] = i;
if ((n%3)==0 && (i+primes[n*2/3-1]) % primes[n/3-1]==0)
printf("%llu, ", n/3);
for (j = i*i>>1; j < TOP/2; j += i) c[j] = 1;
}
return 0;
}
CROSSREFS
Sequence in context: A198893 A279886 A048828 * A003360 A367121 A225772
KEYWORD
nonn,more
AUTHOR
Alex Ratushnyak, May 21 2013
STATUS
approved