Kok, J. Item 2 in Beeler, M.; Gosper, R. W.; and Schroeppel, R. HAKMEM. Cambridge, MA: MIT Artificial Intelligence Laboratory, Memo AIM-239, p. 3, Feb. 1972. http://www.inwap.com/pdp10/hbaker/hakmem/geometry.html#item2.Sloane, N. J. A. Sequence A006522/M3413 in "The On-Line Encyclopedia of Integer Sequences."