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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A173444 Either (n-th prime-1)^2-+1, but not both, is prime. 1
1, 3, 4, 5, 7, 12, 13, 19, 31, 32, 36, 37, 42, 47, 53, 54, 55, 58, 60, 63, 78, 79, 82, 83, 91, 94, 102, 105, 106, 118, 125, 126, 133, 135, 144, 155, 156, 159, 161, 163, 178, 184, 190, 206, 210, 214, 216, 219, 247, 248, 284, 286, 288, 307, 313, 315, 322, 336, 340, 344 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Numbers n such that either A005722(n)-+1 is prime.

LINKS

Table of n, a(n) for n=1..60.

EXAMPLE

a(1)=1 because (1th prime-1)^2-1=0=nonprime and (1th prime-1)^2+1=2=prime; a(2)=3 because (3th prime-1)^2-1=15=nonprime and (3th prime-1)^2+1=17=prime.

MAPLE

A005722 := proc(n) (ithprime(n)-1)^2 ; end proc: for n from 1 to 800 do a := A005722(n) ; if isprime(a-1) <> isprime(a+1) then printf("%d, ", n) ; end if; end do: [From R. J. Mathar, Apr 24 2010]

MATHEMATICA

ppQ[n_]:=Module[{c=(Prime[n]-1)^2}, Sort[PrimeQ[{c+1, c-1}]]== {False, True}]; Select[Range[400], ppQ] (* From Harvey P. Dale, June 24 2011 *)

CROSSREFS

Cf. A000040, A005722, A006093, A127435.

Sequence in context: A023713 A032890 A092859 * A120424 A139440 A102607

Adjacent sequences:  A173441 A173442 A173443 * A173445 A173446 A173447

KEYWORD

nonn

AUTHOR

Juri-Stepan Gerasimov, Feb 18 2010, Mar 27 2010

EXTENSIONS

More terms from R. J. Mathar, Apr 24 2010

Definition clarified by Harvey P. Dale, June 24 2011

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 20 18:12 EDT 2013. Contains 225464 sequences.