|
|
A257553
|
|
Primes whose squares are not the sums of two consecutive nonsquares.
|
|
2
|
|
|
2, 3, 7, 17, 41, 239, 577, 665857, 9369319, 63018038201, 489133282872437279, 19175002942688032928599, 123426017006182806728593424683999798008235734137469123231828679
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
2 is in this sequence, and an odd prime p is in the sequence iff either (p^2 - 1)/2 or (p^2 + 1)/2 is a square. - Wolfdieter Lang, May 07 2015
|
|
LINKS
|
|
|
EXAMPLE
|
2 is in the sequence because it is prime and its square 4 is in A256944: 4 is not a sum of consecutive numbers.
3 is in the sequence because it is prime and its square 9 is in A256944: 9 = 2^2 + 5.
7 is in the sequence because it is prime and its square 49 is in A256944: 49 = 24 + 5^2.
5 is not in the sequence because neither 12 nor 13 is a square.
|
|
MATHEMATICA
|
lim = 1000000; s = Plus @@@ (Partition[#, 2, 1] & @ Complement[Range@ lim, Range[Floor@ Sqrt[lim]]^2]); Select[Sqrt[#] & /@ Select[Range@ Floor[Sqrt[lim]]^2, ! MemberQ[s, #] &] , PrimeQ] (* Michael De Vlieger, Apr 29 2015 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|