Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125557
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125557 Primes in the sequence a(n)=n^2+3/2-1/2*(-1)^n. +0
1
3, 5, 11, 17, 37, 83, 101, 197, 227, 257, 401, 443, 577, 677, 1091, 1297, 1523, 1601, 2027, 2917, 3137, 3251, 4357, 5477, 6563, 7057, 8101, 8837, 9803, 11027, 12101, 12323, 13457, 13691, 14401, 15131, 15377, 15877, 16901, 17957, 21317, 21611 (list; graph; listen)
OFFSET

1,1

COMMENT

3/2 + (-1)^n/2 adds 1 for any even number and 2 for any odd number

EXAMPLE

5 is a member because 2^2+3/2-1/2=5

MAPLE

P:=proc(n) local i, j; for i from 0 by 1 to n do j:=i^2+3/2-1/2*(-1)^i; if isprime(j) then print(j); fi; od; end: P(200);

CROSSREFS

Sequence in context: A006171 A060647 A155989 this_sequence A007455 A034729 A115786

Adjacent sequences: A125554 A125555 A125556 this_sequence A125558 A125559 A125560

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (ppl(AT)spl.at), Dec 31 2006

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 December 17 23:40 EST 2009. Contains 171025 sequences.


AT&T Labs Research