Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A078699
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A078699 Primes p such that p^2-1 is a triangular number. +0
1
2, 11, 23, 373, 12671, 901273, 19472752251611, 53072032161200090602953513048447623, 5027153581127740201460650182713355379768873, 11604855412241025458500993236724193227031777965785837784548351709747881343573 (list; graph; listen)
OFFSET

1,1

COMMENT

Equivalently, primes in A006452.

MATHEMATICA

a[n_] := a[n]=If[n<4, {1, 2, 4, 11}[[n+1]], 6a[n-2]-a[n-4]]; Select[a/@Range[200], ProvablePrimeQ] (* First do <<NumberTheory`PrimeQ` *)

PROGRAM

(PARI) default(primelimit, 10^7) istri(n) = t=floor(sqrt(2*n)); if(2*n==t*(t+1), 1, 0) forprime(p=2, 5*10^6, if(istri(p^2-1), print1(p" ")))

CROSSREFS

Cf. A000217, A006452.

Sequence in context: A141423 A106974 A115374 this_sequence A042347 A041803 A009189

Adjacent sequences: A078696 A078697 A078698 this_sequence A078700 A078701 A078702

KEYWORD

nonn

AUTHOR

Jason Earls (zevi_35711(AT)yahoo.com), Dec 18 2002

EXTENSIONS

Edited by Dean Hickerson (dean.hickerson(AT)yahoo.com), Dec 19 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 December 11 12:57 EST 2009. Contains 170656 sequences.


AT&T Labs Research