The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A276476 a(n) is the number of distinct integers of the form x^2-x-prime(n) for 0<=x<=prime(n)+1 whose absolute value is prime. 0
1, 2, 3, 5, 6, 9, 9, 13, 11, 17, 20, 17, 10, 32, 16, 23, 26, 30, 25, 21, 55, 38, 30, 27, 25, 34, 57, 19, 83, 49, 44, 40, 39, 60, 37, 77, 54, 57, 27, 43, 79, 67, 45, 110, 42, 93, 79, 79, 43, 85, 46, 90, 96, 41, 54, 96, 127, 107, 63, 78, 181, 67, 78, 72, 189, 51, 77, 103 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(2)=2 because prime(2)=3 and x^2 - x - 3 generates {-3, -3, -1, 3, 9}. This contains two integers, -3 and 3, whose absolute value is prime.
a(14)=32 because prime(14)=43 and x^2 - x - 43 generates 32 prime numbers for x = 0..44.
PROG
(PARI) isaprime(x) = isprime(x) || isprime(-x);
nbp(n) = {v = vector(prime(n)+2, x, x--; x^2-x-prime(n)); vp = select(x->isaprime(x), v); vp = Set(vp); #vp; } \\ Michel Marcus, Sep 13 2016
CROSSREFS
Sequence in context: A053784 A036697 A131292 * A069880 A230044 A329269
KEYWORD
nonn
AUTHOR
Charles Kusniec, Sep 12 2016
EXTENSIONS
More terms from Michel Marcus, Sep 13 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 3 00:27 EDT 2024. Contains 373054 sequences. (Running on oeis4.)