Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A145896
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A145896 Values of m: where m^2 begins a run of consecutive squares satisfying r=p+4*m^2 with a sequence of primes +0
3
3, 6, 2, 1, 8, 4, 7, 1, 2, 1, 1, 1, 19, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 2, 1, 1, 2, 1, 4, 1, 1, 1, 1, 1, 2, 2, 1, 7, 3, 4, 1, 1, 2, 7, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2 (list; graph; listen)
OFFSET

1,1

COMMENT

Suggested by Farideh Firoozbakht's Puzzle 464 in Carlos Rivera's The Prime Puzzles & Problems Connection

EXAMPLE

a(1)=3 because when m is 3 a sequence of three values of r end with prime 37; then r=1+4*1^1=5, prime; and r=1+4*2^2=17, prime; and r=1+4*3^2=37, prime (and the next value of m, 4, does not produce a prime because r=1+4*4^2=65). For this one value 1 is assumed prime.

PROGRAM

(Other) UBASIC: 10 'p464 20 N=1 30 A=3:S=sqrt(N) 40 B=N\A 50 if B*A=N then 100 60 A=A+2 70 if A<=S then 40 80 M=M+1:R=N+4*M^2:if R=prmdiv(R) and M<100 then print N; R; M:goto 80 90 if M>=1 then stop 100 M=0:N=N+2:goto 30

CROSSREFS

A145897 A145898 A145741

Sequence in context: A058178 A058078 A016551 this_sequence A159963 A120907 A133358

Adjacent sequences: A145893 A145894 A145895 this_sequence A145897 A145898 A145899

KEYWORD

easy,nonn

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), Oct 25 2008

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 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research