Skip to content

andyborne/orderlycubes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Orderly Cubes

Info

orderlycubes.rb demonstrates a base-10 repeating number pattern where adding the cubes of certain numbers appears to simply concatenate the original bases, as visualized in this tweet.

Dependencies

  • Ruby, obviously.
  • There is one recommended gem dependency, colorize. The script will either detect it and use it or not detect it and not use it.

Usage

  • > ruby orderlycubes.rb

Or, on a Unix-like shell:

  • > chmod +x orderlycubes.rb; ./orderlycubes.rb

The script accepts one optional argument, which must consist only of numerical digits, and sets the number of iterations to calculate (default: 33).

  • > ruby orderlycubes.rb 3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages