OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..674 from R. J. Mathar)
B. Ghusayni, Subsets of prime numbers, Int. J. Math. Comp. Sci. 7 (2) 2012
Jonathan Sondow, Ramanujan primes and Bertrand's postulate, arXiv:0907.5232 [math.NT], 2009-2010.
Jonathan Sondow, Ramanujan primes and Bertrand's postulate, Amer. Math. Monthly, 116 (2009), 630-635.
Jonathan Sondow, J. W. Nicholson, and T. D. Noe, Ramanujan Primes: Bounds, Runs, Twins, and Gaps, J. Integer Seq. 14 (2011) Article 11.6.2.
EXAMPLE
a(1) = 149 because (149,151) is the 1st pair of twin primes both of which are Ramanujan primes.
11 is not a member even though 11 and 13 are twin primes and 11 is a Ramanujan prime, because 13 is not also a Ramanujan prime.
MAPLE
n := 1:
for i from 1 do
printf("%d %d\n", n, A104272(i)) ;
n := n+1 ;
end if;
end do: # produces b-file, R. J. Mathar, Sep 21 2017
MATHEMATICA
PROG
(Perl) use ntheory ":all"; my $r = ramanujan_primes(1e5); my @rt = @$r[grep { $r->[$_+1]-$r->[$_]==2 } 0..$#$r-1]; say "@rt"; # Dana Jacobsen, Sep 06 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Sondow, May 20 2010
STATUS
approved