login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A056897 Smallest square where a(n)+n is prime. 3
1, 0, 0, 1, 0, 1, 0, 9, 4, 1, 0, 1, 0, 9, 4, 1, 0, 1, 0, 9, 16, 1, 0, 49, 4, 81, 4, 1, 0, 1, 0, 9, 4, 9, 36, 1, 0, 9, 4, 1, 0, 1, 0, 9, 16, 1, 0, 25, 4, 9, 16, 1, 0, 25, 4, 81, 4, 1, 0, 1, 0, 9, 4, 9, 36, 1, 0, 81, 4, 1, 0, 1, 0, 9, 4, 25, 36, 1, 0, 9, 16, 1, 0, 25, 4, 81, 16, 1, 0, 49, 16, 9, 4, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,8

LINKS

Harvey P. Dale, Table of n, a(n) for n = 0..1000

FORMULA

a(n) =A056896(n)-n =A056898(n)^2

EXAMPLE

a(8)=9 since 9 is a square and 9+8=7 which is a prime

MATHEMATICA

With[{sqs=Range[0, 20]^2}, Table[SelectFirst[sqs, PrimeQ[n+#]&], {n, 100}]] (* The program uses the SelectFirst function from Mathematica version 10 *) (* Harvey P. Dale, May 07 2016 *)

CROSSREFS

Cf. A000040, A002496, A056892-A056898.

Sequence in context: A259484 A021918 A112146 * A263192 A270309 A010158

Adjacent sequences:  A056894 A056895 A056896 * A056898 A056899 A056900

KEYWORD

nonn

AUTHOR

Henry Bottomley, Jul 05 2000

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 22 18:28 EST 2019. Contains 319365 sequences. (Running on oeis4.)