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.

A056869 Prime hypotenuses of Pythagorean triangles with consecutive integer sides.

This page as a plain text file.
%I A056869 #41 Jan 03 2019 17:46:53
%S A056869 5,29,5741,33461,44560482149,1746860020068409,68480406462161287469,
%T A056869 13558774610046711780701,4125636888562548868221559797461449,
%U A056869 4760981394323203445293052612223893281
%N A056869 Prime hypotenuses of Pythagorean triangles with consecutive integer sides.
%C A056869 These primes belong to A001653.
%C A056869 From _Jianing Song_, Jan 02 2019: (Start)
%C A056869 Essentially the same sequence as A086383.
%C A056869 If p is a term then it is a unique-period prime in base sqrt(2*p^2 - 1). (End)
%H A056869 Robert Israel, <a href="/A056869/b056869.txt">Table of n, a(n) for n = 1..22</a>
%F A056869 a(n) = A086383(n+1). - _Jianing Song_, Jan 02 2019
%e A056869 29 is included because it is prime and it is the hypotenuse of the 20, 21, 29 Pythagorean triangle.
%p A056869 f:= gfun:-rectoproc({a(n)=6*a(n-1)-a(n-2),a(1)=1,a(2)=5},a(n),remember):
%p A056869 select(isprime, [seq(f(n),n=1..1000)]); # _Robert Israel_, Oct 13 2015
%t A056869 Select[Sqrt[#^2+(#+1)^2]&/@With[{p=3+2Sqrt[2]},NestList[Floor[p #]+3&,3,120]],PrimeQ] (* _Harvey P. Dale_, May 02 2018 *)
%o A056869 (PARI) t(n) = if(n<3, 5^(n-1), 6*t(n-1)-t(n-2));
%o A056869 for(n=1, 50, if(isprime(t(n)), print1(t(n)", "))) \\ _Altug Alkan_, Oct 13 2015
%o A056869 (GAP) f:=[1,5];; for n in [3..60] do f[n]:=6*f[n-1]-f[n-2]; od; a:=Filtered(f,IsPrime);; Print(a); # _Muniru A Asiru_, Jan 03 2019
%Y A056869 Cf. A000129, A001653, A001652, A046090, A086383.
%K A056869 nonn
%O A056869 1,1
%A A056869 _Harvey P. Dale_, Sep 02 2000
%E A056869 Incorrect link to index entries for linear recurrences with constant coefficients removed by _Colin Barker_, Oct 13 2015
%E A056869 Offset changed to 1 by _Colin Barker_, Oct 13 2015