[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Revision History for A225431 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A225431 Primes p such that there is a prime q satisfying 3*p^2 - q^2 = 2.
(history; published version)
#36 by T. D. Noe at Tue May 14 12:59:01 EDT 2013
STATUS

editing

approved

#35 by T. D. Noe at Tue May 14 12:58:54 EDT 2013
MATHEMATICA

nn = 1000; ta = LinearRecurrence[{4, -1}, {1, 3}, 1000nn]; tb = LinearRecurrence[{4, -1}, {1, 5}, 1000nn]; sol = Select[Range[1000nn], PrimeQ[ta[[#]]] && PrimeQ[tb[[#]]] &]; tta[[sol]] (* T. D. Noe, May 14 2013 *)

#34 by T. D. Noe at Tue May 14 12:56:20 EDT 2013
COMMENTS

This is a form of Pell's equation with the requirement that solutions be prime. - T. D. Noe, May 14 2013

LINKS

Eric W. Weisstein, <a href="http://mathworld.wolfram.com/PellEquation.html">MathWorld: Pell Equation</a>

MATHEMATICA

ta = LinearRecurrence[{4, -1}, {1, 3}, 1000]; tb = LinearRecurrence[{4, -1}, {1, 5}, 1000]; sol = Select[Range[1000], PrimeQ[ta[[#]]] && PrimeQ[tb[[#]]] &]; t[[sol]] (* T. D. Noe, May 14 2013 *)

STATUS

approved

editing

#33 by Bruno Berselli at Tue May 14 05:04:25 EDT 2013
STATUS

reviewed

approved

#32 by Michael B. Porter at Mon May 13 21:29:31 EDT 2013
STATUS

proposed

reviewed

#31 by Michael B. Porter at Mon May 13 21:28:43 EDT 2013
STATUS

editing

proposed

#30 by Michael B. Porter at Mon May 13 21:26:47 EDT 2013
PROG

(PFGW)

(PFGW) ABC2 Linear(3, 11, 41, 153, $a) & Linear(5, 19, 71, 265, $a)

#29 by Michael B. Porter at Mon May 13 21:24:40 EDT 2013
EXAMPLE

311 is prime and sqrt(3*311^2 - 2) = sqrt(25361) = 519 is prime, so 11 is in the a(1) = 3;sequence.

11 prime and sqrt(3*11^2 - 2) = sqrt(361) = 19 prime, so a(2) = 11;

41 prime and sqrt(3*41^2 - 2) = sqrt(1681) = 71 prime, so a(3) = 41.

PROG

(PFGW) ABC2 Linear(3, 11, 41, 153, $a) & Linear(5, 19, 71, 265, $a) // _Charles R Greathouse IV_, May 13 2013)

a: from 3 to 20000 // _Charles R Greathouse IV_, May 13 2013

STATUS

proposed

editing

#28 by Charles R Greathouse IV at Mon May 13 14:12:21 EDT 2013
STATUS

editing

proposed

#27 by Charles R Greathouse IV at Mon May 13 14:11:59 EDT 2013
COMMENTS

Probably finite.

PROG

(PARI) v=[1, 1]; for(i=1, 1e4, v=[v[2], 4*v[2]-v[1]]; if(ispseudoprime(v[2]) && ispseudoprime(sqrtint(3*v[2]^2-2)), print1(v[2]", "))) \\ Charles R Greathouse IV, May 13 2013

(PFGW) ABC2 Linear(3, 11, 41, 153, $a) & Linear(5, 19, 71, 265, $a) // Charles R Greathouse IV, May 13 2013

a: from 3 to 20000

STATUS

proposed

editing

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 13:55 EDT 2024. Contains 375517 sequences. (Running on oeis4.)