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!)
A242383 Lesser of consecutive primes whose average is an oblong number. 3
5, 11, 29, 41, 53, 71, 239, 337, 419, 461, 503, 547, 599, 647, 863, 1051, 1187, 1481, 1721, 1801, 2549, 2647, 2969, 3539, 4421, 6317, 7129, 8009, 10301, 12653, 13567, 14033, 17291, 18353, 19181, 19457, 20021, 22943, 23561, 24179, 27059, 29063, 29753, 31151, 33301, 35153 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
53 is in the sequence because it is prime, nextprime(53) = 59 and (53+59)/2 = 56 = 8*7, an oblong number.
MATHEMATICA
f[n_] := NextPrime[n*(n + 1), -1] ; f /@ Select[Range[200], (ob = #*(# + 1)) == (NextPrime[ob, -1] + NextPrime[ob])/2 &] (* Amiram Eldar, May 06 2020 *)
Select[Partition[Prime[Range[4000]], 2, 1], OddQ[Sqrt[1+4*Mean[#]]]&][[All, 1]] (* Harvey P. Dale, Oct 25 2020 *)
PROG
(PARI){for(i=3, 10^5, if(isprime(i), k=(i+nextprime(i+1))/4; if(issquare(8*k+1), print1(i, ", "))))}
CROSSREFS
Sequence in context: A019345 A279067 A049489 * A141785 A144311 A074367
KEYWORD
nonn
AUTHOR
Antonio Roldán, May 12 2014
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 April 18 18:58 EDT 2024. Contains 371781 sequences. (Running on oeis4.)