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.

A195019 Multiples of 3 and of 4 interleaved: a(2*n-1) = 3*n, a(2*n) = 4*n.

This page as a plain text file.
%I A195019 #49 Feb 16 2025 08:33:15
%S A195019 3,4,6,8,9,12,12,16,15,20,18,24,21,28,24,32,27,36,30,40,33,44,36,48,
%T A195019 39,52,42,56,45,60,48,64,51,68,54,72,57,76,60,80,63,84,66,88,69,92,72,
%U A195019 96,75,100,78,104,81,108,84,112,87,116,90,120,93,124,96,128
%N A195019 Multiples of 3 and of 4 interleaved: a(2*n-1) = 3*n, a(2*n) = 4*n.
%C A195019 First differences of A195020.
%C A195019 a(n) is also the length of the n-th edge of a square spiral in which the first two edges are the legs of the primitive Pythagorean triple [3, 4, 5]. The spiral contains infinitely many Pythagorean triples in which the hypotenuses are the positives A008587. Zero together with partial sums give A195020; the vertices of the spiral.
%H A195019 Vincenzo Librandi, <a href="/A195019/b195019.txt">Table of n, a(n) for n = 1..10000</a>
%H A195019 Ron Knott, <a href="http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Pythag/pythag.html#uadgen">Pythagorean triangles and triples</a>
%H A195019 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PythagoreanTriple.html">Pythagorean Triple</a>
%H A195019 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,2,0,-1).
%F A195019 pair(3*n, 4*n).
%F A195019 a(2*n-1) = 3*n, a(2*n) = 4*n. - _M. F. Hasler_, Sep 08 2011
%F A195019 G.f.: x*(3+4*x) / ( (x-1)^2*(1+x)^2 ). - _R. J. Mathar_, Sep 09 2011
%F A195019 From _Bruno Berselli_, Sep 12 2011: (Start)
%F A195019 a(n) = ((n-3)*(-1)^n + 7*n + 3)/4.
%F A195019 a(n) + a(n+1) = A047355(n+2). (End)
%F A195019 E.g.f.: (1/4)*((3 + 7*x)*exp(x) - (3 + x)*exp(-x)). - _G. C. Greubel_, Aug 19 2017
%t A195019 Table[((n-3)*(-1)^n + 7*n + 3)/4, {n,1,50}] (* _G. C. Greubel_, Aug 19 2017 *)
%o A195019 (PARI) a(n)=(n+1)\2*(4-n%2)  \\ _M. F. Hasler_, Sep 08 2011
%o A195019 (Magma) [((n-3)*(-1)^n+7*n+3)/4: n in [1..60]]; // _Vincenzo Librandi_, Sep 12 2011
%Y A195019 Cf. A008585, A008586, A026741, A195020-A195029, A195031, A195033, A195035.
%K A195019 nonn,easy
%O A195019 1,1
%A A195019 _Omar E. Pol_, Sep 07 2011, Sep 12 2011