Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A059843
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A059843 a(n) is the smallest prime p such that p-n is a square. +0
2
2, 3, 7, 5, 41, 7, 11, 17, 13, 11, 47, 13, 17, 23, 19, 17, 53, 19, 23, 29, 37, 23, 59, 73, 29, 107, 31, 29, 173, 31, 47, 41, 37, 43, 71, 37, 41, 47, 43, 41, 617, 43, 47, 53, 61, 47, 83, 73, 53, 59, 67, 53, 89, 79, 59, 137, 61, 59, 383, 61, 97, 71, 67, 73, 101, 67, 71, 149, 73 (list; graph; listen)
OFFSET

0,1

FORMULA

Min{p| p-n=x^2 for some x; x>0, p is prime}.

EXAMPLE

n=17: {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53}-17= {-15,...,-4,0,2,6,12,14,20,24,26,30,36}. The first square difference is obtained with 53, the smallest such prime. The square arising here is usually 1.

MAPLE

for n from 1 to 200 do k := 0: c := true: while(c) do k := k+1: if(isprime(k^2+n)) then c := false: end if: end do: a[n] := k^2+n: end do: seq(a[j], j=1..200);

CROSSREFS

These terms arise in A002496, A056899, A049423, A005473, A056905, A056909 as first or 2nd entries depending on offset.

A002496, A056899, A049423, A005473, A056905, A056909.

Sequence in context: A085399 A063696 A069587 this_sequence A092927 A071553 A021812

Adjacent sequences: A059840 A059841 A059842 this_sequence A059844 A059845 A059846

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Feb 26 2001

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research