Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A069003
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A069003 Smallest integer d such that n^2 + d^2 is a prime number. +0
2
1, 1, 2, 1, 2, 1, 2, 3, 4, 1, 4, 7, 2, 1, 2, 1, 2, 5, 6, 1, 4, 5, 8, 1, 4, 1, 2, 5, 4, 11, 4, 3, 2, 5, 2, 1, 2, 3, 10, 1, 4, 5, 8, 9, 2, 5, 2, 13, 4, 7, 4, 3, 10, 1, 4, 1, 2, 3, 6, 13, 10, 3, 32, 9, 2, 1, 2, 5, 10, 3, 6, 5, 2, 1, 4, 5, 10, 7, 4, 7, 4, 3, 18, 1, 2, 9, 2, 3, 4, 1, 4, 7, 8, 1, 2, 5, 2, 3, 4, 3 (list; graph; listen)
OFFSET

1,3

LINKS

T. D. Noe, Table of n, a(n) for n=1..1000

EXAMPLE

a(5)=2 because 2 is the smallest integer d such the 5^2+d^2 is a prime number.

MATHEMATICA

maxN=100; lst={}; For[n=2, n<=maxN, n++, d=1+Mod[n, 2]; While[p=n^2+d^2; Not[PrimeQ[p]], d=d+2]; (* Print[n, " ", d, " ", p]; *) AppendTo[lst, d]; ]; lst

CROSSREFS

Adjacent sequences: A069000 A069001 A069002 this_sequence A069004 A069005 A069006

Sequence in context: A049711 A137293 A074641 this_sequence A087855 A083409 A097454

KEYWORD

easy,nonn

AUTHOR

T. D. Noe (noe(AT)sspectra.com), Apr 02 2002

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 5 16:50 EDT 2008. Contains 144613 sequences.


AT&T Labs Research