[seqfan] Re: Possible correction to title of A113152 "a(1) = 2; a(n) is the smallest prime > a(n-1) such that a(n) + a(n-1) is a square"
Maximilian Hasler
maximilian.hasler at gmail.com
Sun Oct 3 15:20:56 CEST 2010
On Sat, Oct 2, 2010 at 3:14 PM, Jonathan Post <jvospost3 at gmail.com> wrote:
> A113152 a(1) = 2; a(n) is the smallest prime > a(n-1) such that a(n) + a(n-1)
> should perhaps be:
> a(1) = 2; a(n) is the smallest prime > a(n-1) such that a(n) + a(n-1)
> is a square
you certainly intended to write "...is a fourth power".
I agree on this correction.
PARI code:
print1(s=a=2); for(n=1,99,until(isprime(s++^4-a),);print1(", "a=s^4-a))
M.
More information about the SeqFan
mailing list