原本檔案(SVG檔案,表面大細: 393 × 1,045 像素,檔案大細:12 KB)

摘要

描述
English: Directed graph showing the orbits of the odd numbers less than 50 (with the exceptions of 27, 31, 41, and 47, because they would make it too tall) under the Collatz map.

For a larger graph, see :Image:Collatz-graph-300.svg.

Created with Graphviz, with the help of this Python program:

 dotfile = file('collatz-graph.dot', 'w')
 
 limit = 50
 
 def f(n):
   while n % 2 == 0: # divide by 2 until it's odd
     n /= 2
   n = 3*n + 1
   while n % 2 == 0:
     n /= 2
   return n
 
 explored = set([1,27,31,41,47])
 
 dotfile.write('digraph {\n')
 
 for n in range(3, limit, 2): # odd numbers
   while n not in explored:
     dotfile.write(str(n) + ' -> ')
     explored.add(n)
     n = f(n)
   dotfile.write(str(n) + ';\n')
 
 dotfile.write('}\n')
日期 2007年6月10號 (original upload date)
來源 Transferred from en.wikipedia to Commons by Derlay using CommonsHelper.
作者 Keenan Pepper at 英文 維基百科

協議

Public domain This work has been released into the public domain by its author, Keenan Pepper at 英文 維基百科. This applies worldwide.
In some countries this may not be legally possible; if so:
Keenan Pepper grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Original upload log

The original description page was here. All following user names refer to en.wikipedia.
  • 2007-06-10 20:25 Keenan Pepper 393×1045× (12301 bytes) Directed graph showing the orbits of the odd numbers less than 50 (with the exceptions of 27, 31, 41, and 47, because they would make it too tall) under the [[:en:Collatz conjecture|Collatz map]]. Created with [[:en:Graphviz|Graphviz]], with the help of

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

圖中顯示嘅係

10 6 2007

image/svg+xml

7827c7463cd0119cfabc6c5c5b2b3f01135d7e33

12,301 字節

1,045 像素

393 像素

檔案歷史

撳個日期/時間去睇響嗰個時間出現過嘅檔案。

日期/時間縮圖尺寸用戶註解
現時2010年5月25號 (二) 10:03響2010年5月25號 (二) 10:03嘅縮圖版本393 × 1,045(12 KB)Derlay{{Information |Description={{en|Directed graph showing the orbits of the odd numbers less than 50 (with the exceptions of 27, 31, 41, and 47, because they would make it too tall) under the Collatz map. For a larger graph, see [

以下嘅2版用到呢個檔:

全域檔案使用情況

下面嘅維基都用緊呢個檔案: