File:Collatz-graph-all-30-no27-loop.svg

Original file(SVG file, nominally 260 × 1,945 pixels, file size: 20 KB)

Summary

Directed graph showing the orbits of the numbers less than 30 (with the exception of 27 because it would make it too tall) under the Collatz map.

For a larger graph containing only odd numbers, see Image:Collatz-graph-300.svg.

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

dotfile = file('collatz-graph.dot', 'w')

limit = 30

def f(n):
  if n % 2 == 0:
    return n / 2
  else:
    return 3*n + 1

explored = set([1,27])

dotfile.write('digraph {\n')

for n in range(2, limit):
  while n not in explored:
    dotfile.write(str(n) + ' -> ')
    explored.add(n)
    n = f(n)
  dotfile.write(str(n) + ';\n')

dotfile.write('}\n')

Licensing

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

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

image/svg+xml

e4fe5949b377dc1d4a634f5cf4f4fb36003a89f9

20,549 byte

1,945 pixel

260 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:25, 27 July 2007Thumbnail for version as of 18:25, 27 July 2007260 × 1,945 (20 KB)Keenan Pepper== Summary == Directed graph showing the orbits of the numbers less than 30 (with the exception of 27 because it would make it too tall) under the Collatz map. For a larger graph containing only odd numbers, see [[:Image:Collat
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Global file usage

The following other wikis use this file: