cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A027862 Primes of the form j^2 + (j+1)^2.

Original entry on oeis.org

5, 13, 41, 61, 113, 181, 313, 421, 613, 761, 1013, 1201, 1301, 1741, 1861, 2113, 2381, 2521, 3121, 3613, 4513, 5101, 7321, 8581, 9661, 9941, 10513, 12641, 13613, 14281, 14621, 15313, 16381, 19013, 19801, 20201, 21013, 21841, 23981, 24421, 26681
Offset: 1

Views

Author

Keywords

Comments

Also, primes of the form 4*k+1 which are the hypotenuse of one and only one right triangle with integral legs. - Cino Hilliard, Mar 16 2003
Centered square primes (i.e., prime terms of centered squares A001844). - Lekraj Beedassy, Jan 21 2005
Primes of the form 2*k*(k-1)+1. - Juri-Stepan Gerasimov, Apr 27 2010
Equivalently, primes of the form (m^2+1)/2 (take m=2*j+1). These primes a(n) have nontrivial solutions of x^2 == 1 (Modd a(n)) given by x=x(n)=A002731(n). For Modd n see a comment on A203571. See also A206549 for such solutions for primes of the form 4*k+1, given in A002144.
E.g., a(3)=41, A002731(3)=9, 9^2=81, floor(81/41)=1 (odd),
-81 = -2*41 + 1 == 1 (mod 2*41), hence 9^2 == 1 (Modd 41). - Wolfdieter Lang, Feb 24 2012
Also primes of the form 4*k+1 that are the smallest side length of one and only one integer Soddyian triangle (see A230812). - Frank M Jackson, Mar 13 2014
Also, primes of the form (m^2+1)/2. - Zak Seidov, May 01 2014
Note that ((2n+1)^2 + 1)/2 = n^2 + (n+1)^2. - Thomas Ordowski, May 25 2015
Primes p such that 2p-1 is a square. - Thomas Ordowski, Aug 27 2016
Primes in the main diagonal of A000027 when represented as an array read by antidiagonals. - Clark Kimberling, Mar 12 2023
The diophantine equation x^2 + ... + (x + r)^2 = p may be rewritten to A*x^2 + B*x + C = p, where A = (r + 1), B = r*(r + 1), C = r*(r + 1)*(2*r + 1)/6. If gcd(A, B, C) > 1 no solution for a prime p exists. The gcd(A, B, C) = 1 holds only for r = 1, 2, 5 (gcd is the greatest common divisor). For r = 1 we have x^2 + (x + 1)^2 = p, thus for x from A027861 we calculate primes p from A027862. For r = 2 we have x^2 + (x + 1)^2 + (x + 2)^2 = p, thus for x from A027863 we calculate primes p from A027864. For r = 5 we have x^2 + ... + (x + 5)^2 = p, thus for x from A027866 we calculate primes p from A027867. - Ctibor O. Zizka, Oct 04 2023

Examples

			13 is in the sequence because it is prime and 13 = 2^2 + 3^2. - _Michael B. Porter_, Aug 27 2016
		

References

  • D. M. Burton, Elementary Number Theory, Allyn and Bacon Inc. Boston, MA, 1976, p. 271.
  • Morris Kline, Mathematical Thought from Ancient to Modern Times, 1972. pp. 275.

Crossrefs

Primes p such that A079887(p) = 1.
Cf. A002731 (m values), A027861 (j values), A091277 (prime indices).
Subsequence of A002144 (p=4k+1).
Cf. A001844 (centered squares), A027863, A027864, A027866, A027867, A203571, A206549, A230812.

Programs

  • Magma
    [ a: n in [0..150] | IsPrime(a) where a is n^2+(n+1)^2 ]; // Vincenzo Librandi, Dec 18 2010
  • Mathematica
    Select[Table[n^2+(n+1)^2,{n,200}],PrimeQ] (* Harvey P. Dale, Aug 22 2012 *)
    Select[Total/@Partition[Range[200]^2,2,1],PrimeQ] (* Harvey P. Dale, Apr 20 2016 *)
  • PARI
    je=[]; for(n=1,500, if(isprime(n^2+(n+1)^2),je=concat(je,n^2+(n+1)^2))); je
    
  • PARI
    fermat(n) = { for(x=1,n, y=2*x*(x+1)+1; if(isprime(y),print1(y" ")) ) }
    

Formula

a(n) = ((A002731(n)^2 - 1)/2) + 1. - Torlach Rush, Mar 14 2014
a(n) = (A002731(n)^2 + 1)/2. - Zak Seidov, May 01 2014

Extensions

More terms from Cino Hilliard, Mar 16 2003

A070079 a(n) gives the odd leg of the unique primitive Pythagorean triangle with hypotenuse A002144(n).

Original entry on oeis.org

3, 5, 15, 21, 35, 9, 45, 11, 55, 39, 65, 99, 91, 15, 105, 51, 85, 165, 19, 95, 195, 221, 105, 209, 255, 69, 115, 231, 285, 25, 75, 175, 299, 225, 275, 189, 325, 399, 391, 29, 145, 351, 425, 261, 459, 279, 341, 165, 231, 575, 465, 551, 35, 105, 609, 315, 589, 385, 675
Offset: 1

Views

Author

Lekraj Beedassy, May 06 2002

Keywords

Comments

Consider sequence A002144 of primes congruent to 1 (mod 4) and equal to x^2 + y^2, with y>x given by A002330 and A002331; sequence gives values y^2 - x^2.
Odd legs of primitive Pythagorean triangles with unique (prime) hypotenuse (A002144), sorted on the latter. Corresponding even legs are given by 4*A070151 (or A145046). - Lekraj Beedassy, Jul 22 2005

Examples

			The following table shows the relationship
between several closely related sequences:
Here p = A002144 = primes == 1 mod 4, p = a^2+b^2 with a < b;
a = A002331, b = A002330, t_1 = ab/2 = A070151;
p^2 = c^2+d^2 with c < d; c = A002366, d = A002365,
t_2 = 2ab = A145046, t_3 = b^2-a^2 = A070079,
with {c,d} = {t_2, t_3}, t_4 = cd/2 = ab(b^2-a^2).
---------------------------------
.p..a..b..t_1..c...d.t_2.t_3..t_4
---------------------------------
.5..1..2...1...3...4...4...3....6
13..2..3...3...5..12..12...5...30
17..1..4...2...8..15...8..15...60
29..2..5...5..20..21..20..21..210
37..1..6...3..12..35..12..35..210
41..4..5..10...9..40..40...9..180
53..2..7...7..28..45..28..45..630
.................................
		

Crossrefs

Programs

  • Mathematica
    pp = Select[ Range[200] // Prime, Mod[#, 4] == 1 &]; f[p_] := y^2 - x^2 /. ToRules[ Reduce[0 <= x <= y && p == x^2 + y^2, {x, y}, Integers]]; A070079 = f /@ pp (* Jean-François Alcover, Jan 15 2015 *)

Formula

a(n)=A079886(n)*A079887(n) - Benoit Cloitre, Jan 13 2003
a(n) is the odd positive integer with A080109(n) = A002144(n)^2 = a(n)^2 + (4*A070151(n))^2, in this unique decomposition into positive squares (up to order). See the Lekraj Beedassy, comment. - Wolfdieter Lang, Jan 13 2015

Extensions

More terms from Benoit Cloitre, Jan 13 2003
Edited: Used a different name and moved old name to the comment section. - Wolfdieter Lang, Jan 13 2015

A079886 Values of x+y where p runs through the primes of form 4k+1 and p=x^2+y^2, 0<=x<=y.

Original entry on oeis.org

3, 5, 5, 7, 7, 9, 9, 11, 11, 13, 13, 11, 13, 15, 15, 17, 17, 15, 19, 19, 15, 17, 21, 19, 17, 23, 23, 21, 19, 25, 25, 25, 23, 25, 25, 27, 25, 21, 23, 29, 29, 27, 25, 29, 27, 31, 31, 33, 33, 25, 31, 29, 35, 35, 29, 35, 31, 35, 27, 31, 37, 29, 35, 39, 37, 39, 37, 33, 39, 37, 41, 33
Offset: 1

Views

Author

Benoit Cloitre, Jan 13 2003

Keywords

Comments

Also values of y where p runs through the primes of form 4k+1 and 2*p=x^2+y^2, 0 Colin Barker, Jul 07 2014

Crossrefs

Programs

  • Maple
    N:= 100: # to get values corresponding to primes <= 4*N+1
    P:= select(isprime, [seq(4*i+1,i=0..N)]):
    F:= proc(p) local f; f:= GaussInt:-GIfactors(p)[2][1][1]; abs(Re(f))+abs(Im(f)) end proc:
    map(F,P); # Robert Israel, Jul 07 2014
  • Mathematica
    pp = Select[ Range[200] // Prime, Mod[#, 4] == 1 &]; f[p_] := x + y /. ToRules[ Reduce[0 <= x <= y && p == x^2 + y^2, {x, y}, Integers]]; A079886 = f /@ pp (* Jean-François Alcover, Jan 15 2015 *)

A096030 Values (y-x-1)/2, where x^2+y^2=p,(xA002144.

Original entry on oeis.org

0, 0, 1, 1, 2, 0, 2, 0, 2, 1, 2, 4, 3, 0, 3, 1, 2, 5, 0, 2, 6, 6, 2, 5, 7, 1, 2, 5, 7, 0, 1, 3, 6, 4, 5, 3, 6, 9, 8, 0, 2, 6, 8, 4, 8, 4, 5, 2, 3, 11, 7, 9, 0, 1, 10, 4, 9, 5, 12, 10, 3, 12, 8, 0, 6, 2, 7, 11, 5, 8, 2, 12, 11, 4, 1, 2, 9, 7, 13, 12, 6, 0, 9, 14, 13, 10, 8, 15, 6, 1, 2, 3, 12, 14, 9, 0, 2
Offset: 1

Views

Author

Lekraj Beedassy, Jun 16 2004

Keywords

Crossrefs

Formula

a(n)=(A079887(n) - 1)/2.

Extensions

More terms from Ray Chandler, Jun 26 2004
Showing 1-4 of 4 results.