OFFSET
0,2
COMMENTS
Zero together with partial sums of A195035.
The only primes in the sequence are 23 and 53 since a(n) = (1/2)*((2*n+(-1)^n+3)/4)*((46*n-37*(-1)^n+37)/4). - Bruno Berselli, Sep 30 2011
The spiral contains infinitely many Pythagorean triples in which the hypotenuses on the main diagonal are the positives multiples of 17 (Cf. A008599). The vertices on the main diagonal are the numbers A195039 = (15+8)*A000217 = 23*A000217, where both 15 and 8 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 15, while the distance "b" between nearest edges that are parallel to the initial edge is 8, so the distance "c" between nearest vertices on the same axis is 17 because from the Pythagorean theorem we can write c = (a^2+b^2)^(1/2) = sqrt(15^2+8^2) = sqrt(225+64) = sqrt(289) = 17. - Omar E. Pol, Oct 12 2011
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Ron Knott, Pythagorean triangles and triples
Eric Weisstein's World of Mathematics, Pythagorean Triple
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
From Bruno Berselli, Sep 30 2011: (Start)
G.f.: x*(15+8*x)/((1+x)^2*(1-x)^3).
a(n) = (2*n*(23*n+53) - (14*n+37)*(-1)^n + 37)/16.
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5). (End)
PROG
(Magma) [(2*n*(23*n+53)-(14*n+37)*(-1)^n+37)/16: n in [0..46]]; // Bruno Berselli, Sep 30 2011
(PARI) a(n)=(2*n*(23*n+53)-(14*n+37)*(-1)^n+37)/16 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Sep 12 2011
EXTENSIONS
More terms from Bruno Berselli, Sep 30 2011
STATUS
approved