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.

A195034 Vertex number of a square spiral in which the length of the first two edges are the legs of the primitive Pythagorean triple [21, 20, 29]. The edges of the spiral have length A195033.

This page as a plain text file.
%I A195034 #42 Feb 16 2025 08:33:15
%S A195034 0,21,41,83,123,186,246,330,410,515,615,741,861,1008,1148,1316,1476,
%T A195034 1665,1845,2055,2255,2486,2706,2958,3198,3471,3731,4025,4305,4620,
%U A195034 4920,5256,5576,5933,6273,6651,7011,7410,7790,8210,8610,9051,9471
%N A195034 Vertex number of a square spiral in which the length of the first two edges are the legs of the primitive Pythagorean triple [21, 20, 29]. The edges of the spiral have length A195033.
%C A195034 Zero together with partial sums of A195033.
%C A195034 The only primes in the sequence are 41 and 83 since a(n) = (1/2)*((2*n+(-1)^n+3)/4)*((82*n-43*(-1)^n+43)/4). - _Bruno Berselli_, Oct 12 2011
%C A195034 The spiral contains infinitely many Pythagorean triples in which the hypotenuses on the main diagonal are the positives multiples of 29 (Cf. A195819). The vertices on the main diagonal are the numbers A195038 = (21+20)*A000217 = 41*A000217, where both 21 and 20 are the first two edges in the spiral. The distance "a" between nearest edges that are perpendicular to the initial edge of the spiral is 21, while the distance "b" between nearest edges that are parallel to the initial edge is 20, so the distance "c" between nearest vertices on the same axis is 29 because from the Pythagorean theorem we can write c = (a^2+b^2)^(1/2) = sqrt(21^2+20^2) = sqrt(441+400) = sqrt(841) = 29. - _Omar E. Pol_, Oct 12 2011
%H A195034 Vincenzo Librandi, <a href="/A195034/b195034.txt">Table of n, a(n) for n = 0..10000</a>
%H A195034 Ron Knott, <a href="http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Pythag/pythag.html#uadgen">Pythagorean triangles and Triples</a>
%H A195034 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PythagoreanTriple.html">Pythagorean Triple</a>
%H A195034 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,2,-2,-1,1).
%F A195034 From _Bruno Berselli_, Oct 12 2011: (Start)
%F A195034 G.f.: x*(21+20*x)/((1+x)^2*(1-x)^3).
%F A195034 a(n) = (2*n*(41*n+83)-(2*n+43)*(-1)^n+43)/16.
%F A195034 a(n) = a(n-1)+2*a(n-2)-2*a(n-3)-a(n-4)+a(n-5).
%F A195034 a(n)-a(-n-2) = A142150(n+1). (End)
%t A195034 LinearRecurrence[{1,2,-2,-1,1},{0,21,41,83,123},50] (* _Harvey P. Dale_, May 02 2012 *)
%o A195034 (Magma) [(2*n*(41*n+83)-(2*n+43)*(-1)^n+43)/16: n in [0..50]]; // _Vincenzo Librandi_, Oct 14 2011
%o A195034 (PARI) concat(0, Vec(x*(21+20*x)/((1+x)^2*(1-x)^3) + O(x^60))) \\ _Michel Marcus_, Mar 08 2016
%Y A195034 Cf. A195020, A195032, A195033, A195036, A195038.
%K A195034 nonn,easy
%O A195034 0,2
%A A195034 _Omar E. Pol_, Sep 12 2011