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-3 of 3 results.

A130608 Nonnegative values x of solutions (x, y) to the Diophantine equation x^2+(x+167)^2 = y^2.

Original entry on oeis.org

0, 28, 385, 501, 645, 2668, 3340, 4176, 15957, 19873, 24745, 93408, 116232, 144628, 544825, 677853, 843357, 3175876, 3951220, 4915848, 18510765, 23029801, 28652065, 107889048, 134227920, 166996876, 628823857, 782338053, 973329525, 3665054428, 4559800732
Offset: 1

Views

Author

Mohamed Bouhamida, Jun 17 2007

Keywords

Comments

Also values x of Pythagorean triples (x, x+167, y).
Corresponding values y of solutions (x, y) are in A159777.
For the generic case x^2+(x+p)^2 = y^2 with p = m^2-2 a (prime) number > 7 in A028871, see A118337.
lim_{n -> infinity} a(n)/a(n-3) = 3+2*sqrt(2).
lim_{n -> infinity} a(n)/a(n-1) = (171+26*sqrt(2))/167 for n mod 3 = {1, 2}.
lim_{n -> infinity} a(n)/a(n-1) = (56211+34510*sqrt(2))/167^2 for n mod 3 = 0.

Crossrefs

Cf. A159777, A028871, A118337, A118675, A118676, A001652, A156035 (decimal expansion of 3+2*sqrt(2)), A159778 (decimal expansion of (171+26*sqrt(2))/167), A159779 (decimal expansion of (56211+34510*sqrt(2))/167^2).

Programs

  • Mathematica
    LinearRecurrence[{1,0,6,-6,0,-1,1},{0,28,385,501,645,2668,3340},80] (* Vladimir Joseph Stephan Orlovsky, Feb 07 2012 *)
  • PARI
    {forstep(n=0, 100000000, [1, 3], if(issquare(2*n^2+334*n+27889), print1(n, ",")))}

Formula

a(n) = 6*a(n-3)-a(n-6)+334 for n > 6; a(1)=0, a(2)=28, a(3)=385, a(4)=501, a(5)=645, a(6)=2668.
G.f.: x*(28+357*x+116*x^2-24*x^3-119*x^4-24*x^5)/((1-x)*(1-6*x^3+x^6)).
a(3*k+1) = 167*A001652(k) for k >= 0.

Extensions

Edited and two terms added by Klaus Brockhaus, Apr 30 2009

A159777 Positive numbers y such that y^2 is of the form x^2+(x+167)^2 with integer x.

Original entry on oeis.org

145, 167, 197, 673, 835, 1037, 3893, 4843, 6025, 22685, 28223, 35113, 132217, 164495, 204653, 770617, 958747, 1192805, 4491485, 5587987, 6952177, 26178293, 32569175, 40520257, 152578273, 189827063, 236169365, 889291345, 1106393203
Offset: 1

Views

Author

Klaus Brockhaus, Apr 30 2009

Keywords

Comments

(-24, a(1)) and (A130608(n), a(n+1)) are solutions (x, y) to the Diophantine equation x^2+(x+167)^2 = y^2.
Lim_{n -> infinity} a(n)/a(n-3) = 3+2*sqrt(2).
Lim_{n -> infinity} a(n)/a(n-1) = (171+26*sqrt(2))/167 for n mod 3 = {0, 2}.
Lim_{n -> infinity} a(n)/a(n-1) = (56211+34510*sqrt(2))/167^2 for n mod 3 = 1.
For the generic case x^2+(x+p)^2 = y^2 with p = m^2 - 2 a prime number in A028871, m >= 5, the x values are given by the sequence defined by: a(n) = 6*a(n-3) - a(n-6) + 2*p with a(1)=0, a(2) = 2*m + 2, a(3) = 3*m^2 - 10*m + 8, a(4) = 3*p, a(5) = 3*m^2 + 10*m + 8, a(6) = 20*m^2 - 58*m + 42. Y values are given by the sequence defined by: b(n) = 6*b(n-3) - b(n-6) with b(1) = p, b(2) = m^2 + 2*m + 2, b(3) = 5*m^2 - 14*m + 10, b(4) = 5*p, b(5) = 5*m^2 + 14*m + 10, b(6) = 29*m^2 - 82*m + 58. - Mohamed Bouhamida, Sep 09 2009

Examples

			(-24, a(1)) = (-24, 145) is a solution: (-24)^2 + (-24+167)^2 = 576 + 20449 = 21025 = 145^2.
(A130608(1), a(2)) = (0, 167) is a solution: 0^2 + (0+167)^2 = 27889 = 167^2.
(A130608(3), a(4)) = (385, 673) is a solution: 385^2 + (385+167)^2 = 148225 + 304704 = 452929 = 673^2.
		

Crossrefs

Cf. A130608, A001653, A156035 (decimal expansion of 3+2*sqrt(2)), A159778 (decimal expansion of (171+26*sqrt(2))/167), A159779 (decimal expansion of (56211+34510*sqrt(2))/167^2).

Programs

  • Magma
    I:=[145,167,197,673,835,1037]; [n le 6 select I[n] else 6*Self(n-3) - Self(n-6): n in [1..30]]; // G. C. Greubel, May 21 2018
  • Mathematica
    LinearRecurrence[{0,0,6,0,0,-1}, {145,167,197,673,835,1037}, 50] (* G. C. Greubel, May 21 2018 *)
  • PARI
    {forstep(n=-24, 10000000, [1, 3], if(issquare(2*n^2+334*n+27889, &k), print1(k, ",")))};
    

Formula

a(n) = 6*a(n-3) - a(n-6) for n > 6; a(1)=145, a(2)=167, a(3)=197, a(4)=673, a(5)=835, a(6)=1037.
G.f.: (1-x)*(145+312*x+509*x^2+312*x^3+145*x^4) / (1-6*x^3+x^6).
a(3*k-1) = 167*A001653(k) for k >= 1.

A159778 Decimal expansion of (171+26*sqrt(2))/167.

Original entry on oeis.org

1, 2, 4, 4, 1, 2, 9, 0, 5, 7, 6, 1, 4, 9, 7, 2, 8, 8, 1, 8, 4, 9, 3, 6, 4, 7, 1, 1, 5, 5, 3, 6, 0, 5, 6, 8, 8, 8, 7, 9, 1, 1, 0, 5, 9, 1, 3, 7, 6, 0, 5, 1, 7, 9, 5, 8, 2, 3, 9, 1, 4, 2, 1, 0, 7, 0, 5, 1, 4, 3, 9, 7, 8, 6, 8, 2, 7, 2, 3, 2, 5, 1, 5, 5, 7, 5, 4, 5, 3, 6, 4, 6, 2, 5, 8, 6, 0, 3, 6, 4, 6, 1, 7, 4, 2
Offset: 1

Views

Author

Klaus Brockhaus, Apr 30 2009

Keywords

Comments

Equals Lim_{n -> infinity} b(n)/b(n-1) for n mod 3 = {1, 2}, b = A130608.
Equals Lim_{n -> infinity} b(n)/b(n-1) for n mod 3 = {0, 2}, b = A159777.

Examples

			(171+26*sqrt(2))/167 = 1.24412905761497288184...
		

Crossrefs

Cf. A130608, A159777, A002193 (decimal expansion of sqrt(2)), A159779 (decimal expansion of (56211+34510*sqrt(2))/167^2).

Programs

  • Magma
    (171 +26*Sqrt(2))/167; // G. C. Greubel, May 21 2018
  • Mathematica
    RealDigits[(171+26*Sqrt[2])/167, 10, 100][[1]] (* G. C. Greubel, May 21 2018 *)
  • PARI
    (171+26*sqrt(2))/167 \\ G. C. Greubel, May 21 2018
    

Formula

Equals (13 + sqrt(2))/(13 - sqrt(2)).
Showing 1-3 of 3 results.