A256111 a(n) = squared distance to the origin of the n-th vertex on a Babylonian Spiral.
0, 1, 5, 13, 26, 50, 65, 85, 116, 100, 97, 85, 85, 90, 128, 205, 293, 409, 481, 586, 730, 845, 890, 841, 833, 745, 514, 244, 65, 17, 106, 338, 698, 1117, 1225, 1193, 1040, 986, 1037, 1060, 850, 477, 197, 85, 80, 232, 530, 757, 650, 522, 225, 16, 50, 333, 797
Offset: 0
Keywords
Examples
On the above diagram, point 4 is distance sqrt(26) from the origin, so a(4) = 26.
Links
- Lars Blomberg, Table of n, a(n) for n = 0..10000
- Lars Blomberg, Illustrations of 100, 1000 and 10000 terms
- MathPickle, Babylonian Spiral
Programs
-
Mathematica
NextVec[{x_, y_}] := Block[{n = x^2 + y^2 + 1}, While[SquaresR[2, n] == 0, n++]; TakeSmallestBy[ Union[Flatten[(Transpose[ Transpose[Tuples[{1, -1},2]] #] & /@ ({{#[[1]], #[[2]]}, {#[[2]], #[[1]]}})) & /@ PowersRepresentations[n, 2, 2], 2]], Mod[ArcTan[#[[2]], #[[1]]] - ArcTan[y, x], 2 Pi] &, 1][[1]] ] Norm[#]^2 & /@ Accumulate[NestList[NextVec, {0, 1}, 50]] (* Alex Meiburg, Dec 29 2017 *)
Extensions
Corrected a(16) and more terms from Lars Blomberg, Nov 17 2016
Comments