素数螺旋,也称为乌拉姆螺旋,是一种将正整数排列成螺旋(左图)的图,其中素数以某种方式沿着螺旋线标示。在上面的右图中,素数用红色表示,合数用黄色表示。
上图显示了螺旋的更大一部分,其中素数显示为点。
在这样的图中,对角线的意外模式显而易见,如上图所示的
网格所示。这个构造最初是由波兰裔美国数学家斯坦尼斯瓦夫·乌拉姆(Stanislaw Ulam,1909-1986)在 1963 年在一次科学会议上进行无聊的谈话时涂鸦时完成的。在绘制线网格时,他决定按照螺旋模式对交叉点进行编号,然后开始圈出螺旋中为素数的数字。令人惊讶的是,圈出的素数似乎沿着许多对角直线排列,或者用乌拉姆稍微正式的散文来说,它“似乎表现出强烈的非随机外观”(Stein 等,1964)。该螺旋出现在 1964 年 3 月《科学美国人》杂志的封面上。
值得注意的是,著名科幻小说作家亚瑟·C·克拉克在他的小说《城市与星星》(1956 年,第 6 章,第 54 页)中描述了素数螺旋。克拉克写道:“杰塞拉克一动不动地坐在数字的漩涡中。前一千个素数……杰塞拉克不是数学家,尽管有时他喜欢相信自己是。他所能做的就是在无限的素数数组中搜索特殊的关系和规则,更有才华的人可能会将其纳入一般规律中。他可以发现数字的行为方式,但他无法解释原因。他的乐趣是在算术丛林中开辟道路,有时他会发现更有技巧的探险家错过的奇迹。他建立了一个包含所有可能整数的矩阵,并开始让他的计算机将素数像珠子一样排列在网格的交叉点处。”
然而,克拉克实际上从未进行过这个思想实验(E. Pegg Jr. 的私人通讯,2002 年 5 月 27 日),因此将素数螺旋的意外特性的发现留给了乌拉姆七年后。
M. Charpentier 编写了一个 PostScript 文件,该文件可以下载到打印机并绘制素数螺旋。
也可以构造六边形素数螺旋,如上图所示(Abbott 2005)。
另请参阅
素数生成多项式,
螺旋线
使用 探索
参考文献
Abbott, P. (Ed.). "Mathematica One-Liners: Spiral on an Integer Lattice." Mathematica J. 1, 39, 1990.Abbott, P. "Re: Hexagonal Spiral." http://forums.wolfram.com/mathgroup/archive/2005/May/msg00336.html. May 11, 2005.Charpentier, M. "Prime Numbers in PostScript." http://www.cs.unh.edu/~charpov/Programming/PostScript-primes/.Clarke, A. C. The City and the Stars. New York: Harcourt, Brace, 1956.Dewdney, A. K. "Computer Recreations: How to Pan for Primes in Numerical Gravel." Sci. Amer. 259, 120-123, July 1988.Ellerstein, S. M. "The Pronic Renaissance: The Ulam Square Spiral (Modified)." J. Recr. Math. 29, 188-189, 1998.Gardner, M. "Mathematical Recreations: The Remarkable Lore of the Prime Number." Sci. Amer. 210, 120-128, Mar. 1964.Gardner, M. The Sixth Book of Mathematical Games from Scientific American. Chicago, IL: University of Chicago Press, pp. 80-83 and 88-89, 1984.Goddard, T. "Ulam Spiral." http://d4maths.lowtech.org/mirage/ulam.htm.Hoffman, P. The Man Who Loved Only Numbers: The Story of Paul Erdős and the Search for Mathematical Truth. New York: Hyperion, pp. 105-109, 1998.Lane, C. "Prime Spiral." http://cdl.best.vwh.net/Java/PrimeSpiralApplet.html.Leatherland, A. J. F. "The Mysterious Prime Spiral Phenomenon." http://yoyo.cc.monash.edu.au/~bunyip/primes/#spiral.Morin, D. "Le Village Premier." http://platon.lacitec.on.ca/~dmorin/applet/village/.Peterson, I. "MathTrek: Prime Spirals." May 4, 2002. http://www.sciencenews.org/20020504/mathtrek.asp.Pickover, C. "A Prime Plaid." In Computers and the Imagination: Visual Adventures Beyond the Edge. New York: St. Martin's, 1991.Stein, M. and Ulam, S. M. "An Observation on the Distribution of Primes." Amer. Math. Monthly 74, 43-44, 1967.Stein, M. L.; Ulam, S. M.; and Wells, M. B. "A Visual Display of Some Properties of the Distribution of Primes." Amer. Math. Monthly 71, 516-520, 1964.在 中被引用
素数螺旋
引用为
Weisstein, Eric W. “素数螺旋。” 来自 Web 资源。 https://mathworld.net.cn/PrimeSpiral.html
主题分类