File:CollatzOdds.svg

Original file(SVG file, nominally 540 × 531 pixels, file size: 24 KB)

Summary

Description

groff -Tpdf -t -p <<EOF

   .PS
   .ps 7
   z=30
   scale=5
   arrowwid=0.5
   arrowht=1
   for n = 1 to z by 2 do {
      box wid 1 ht 1 at n,n sprintf("%0.0f",n)
      if n % 6 != 3 then {
          arrow from z,n to n+0.5,n
      }
      y=3*n+1
      for while = 1 to z do {
         if y % 2 == 0 then {
              y:=y/2
          }
      }
      if n % 4 == 1 && n > 1 then {
          line from n,n-0.5 to n,y
      }
      if n % 4 == 3 then {
          if (y > z) then {
              line from n,n+0.5 to n,z
          } else {
              line from n,n+0.5 to n,y
              arrow to y-0.5,y
          }
      }
   }
   .PE
EOF
Date
Source Own work
Author IM Serious

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

an interesting snippet of the odd numbers subgraph of the Collatz 3n+1 graph

Items portrayed in this file

depicts

24 January 2023

image/svg+xml

7efa251d650493ad4578f0c66bb2d453040f9c39

25,081 byte

531 pixel

540 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current01:11, 24 January 2023Thumbnail for version as of 01:11, 24 January 2023540 × 531 (24 KB)IM SeriousUploaded own work with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Metadata