kids encyclopedia robot

Image: CollatzConjectureGraphMaxValues

Kids Encyclopedia Facts
Original image(437 × 818 pixels, file size: 66 KB, MIME type: image/jpeg)

Description: The horizontal axis is a starting value n. The vertical axis represents the max value reached, following the collatz conjecture rule (n%2==0)?n/2:n*3+1, in the "chain" to one. Created using the following Mathematica code Clear[maxList, nMax, n, nLooper] n = 1; maxList = {}; goTo = 10000; While[n <= goTo, nLooper = n; nMax = n; While[nLooper > 1, If[nLooper > nMax, nMax = nLooper] If[Mod[nLooper, 2] == 0, nLooper = nLooper / 2, nLooper = nLooper * 3 + 1 ] ]; maxList = Join[maxList, {nMax}]; n++; ] ListPlot[maxList, AspectRatio -> 2] (end of listing)
Title: CollatzConjectureGraphMaxValues
Credit: Personal Work, Created using Wolfram Mathematica software version 7.0.1.0
Author: Ryan McNamara
Usage Terms: GNU Free Documentation License
License: GFDL
License Link: http://www.gnu.org/copyleft/fdl.html
Attribution Required?: Yes

The following page links to this image:

kids search engine