|
|
A225806
|
|
Prime(n) such that 2*n^2 - prime(n) is square.
|
|
0
|
|
|
2, 7, 17, 71, 6607, 15313, 91801, 141689, 443777, 858463, 1353593, 2345479, 726919199, 2458927937, 7425764663, 37193744801, 329683117297, 973676004031, 1294734832753, 3825780992497, 10360880429177
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The associated indices n are 1, 4, 7, 20, 854, 1789, 8869, 13157, 37247, 68234, ....
|
|
LINKS
|
|
|
EXAMPLE
|
17 is in the sequence because 17 = prime(7) and 2*7^2 - 17 = 81 is square.
|
|
MAPLE
|
p:=1: count:= 0: R:= NULL: S:= NULL:
for i from 1 while count < 13 do
p:= nextprime(p);
if issqr(2*i^2-p) then
count:= count+1;
R:= R, p;
S:= S, i;
fi
od:
|
|
PROG
|
(PARI) isok(p) = isprime(p) && issquare(2*primepi(p)^2 - p); \\ Michel Marcus, Apr 14 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|