%I #19 Mar 18 2024 11:56:02
%S 2,5,13,25,41,61,85,113,145,202,605,1573,3025,4961,7381,10285,13673,
%T 17545,20002,22522,26962,31802,37042,42682,48722,55162,62002,69242,
%U 77285,85748,94228,103108,112388,122068,132148,142628,153508,164788
%N Length of hypotenuse squared in right triangle formed by a palindromic spiral plotted in Cartesian coordinates.
%D H. E. Huntley, The Divine Proportion, A Study in Mathematical Beauty. New York: Dover, 1970. See Chapter 13, Spira Mirabilis, especially Fig. 13-5, page 173.
%H Harvey P. Dale, <a href="/A048871/b048871.txt">Table of n, a(n) for n = 1..1000</a>
%H Patrick De Geest, <a href="http://www.worldofnumbers.com/index.html">World!Of Numbers</a>
%F a(n) = A002113(n)^2 + A002113(n-1)^2, n > 1.
%e To begin palindromic spiral, plot (1, 0), (0, 1). Hypotenuse is c^2=a^2+b^2, or 2=1+1. a(1) = 2.
%e a(2)=5 because c^2=a^2+b^2 and 5=1+4.
%t Join[{2},Total[#^2]&/@Partition[Select[Range[300],PalindromeQ],2,1]] (* _Harvey P. Dale_, Mar 18 2024 *)
%Y Cf. A002113.
%Y An analog of the prime spiral of A048851.
%K easy,nonn,base,nice
%O 1,1
%A _Enoch Haga_