|
Search: id:A069002
|
|
|
| A069002 |
|
Smallest integer d such that n^2 + (n-d)^2 is a prime number. |
|
+0 1
|
|
| 1, 1, 3, 1, 1, 5, 1, 5, 1, 5, 5, 1, 3, 1, 7, 5, 1, 3, 1, 11, 5, 1, 5, 1, 1, 5, 3, 13, 1, 1, 5, 1, 5, 1, 1, 5, 13, 5, 1, 7, 17, 1, 3, 7, 5, 17, 1, 3, 7, 1, 7, 3, 13, 13, 5, 5, 3, 5, 17, 1, 7, 5, 3, 3, 1, 7, 3, 29, 1, 1, 17, 1, 19, 11, 15, 5, 23, 5, 1, 7, 5, 1, 5, 1, 1, 5, 1, 9, 11, 1, 5, 11, 3, 3, 5, 7, 1
(list; graph; listen)
|
|
|
OFFSET
|
2,3
|
|
|
COMMENT
|
The case n=1 makes no sense, and is omitted. For even n, it seems that 2d < n except for n=4.
|
|
LINKS
|
T. D. Noe, Table of n, a(n) for n=2..1000
|
|
EXAMPLE
|
a(5)=1 because (5-1) is the largest integer less than 5 such the sum of their squares is a prime number.
|
|
MATHEMATICA
|
maxN=100; lst={}; For[n=2, n<=maxN, n++, d=1; While[p=n^2+(n-d)^2; Not[PrimeQ[p]], d=d+2]; (* Print[n, " ", d, " ", p]; *) AppendTo[lst, d]; ]; lst
|
|
CROSSREFS
|
Sequence in context: A046229 A124738 A131086 this_sequence A076334 A014475 A135228
Adjacent sequences: A068999 A069000 A069001 this_sequence A069003 A069004 A069005
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
T. D. Noe (noe(AT)sspectra.com), Apr 02 2002
|
|
|
Search completed in 0.002 seconds
|