Skip to content

This is a console application that will calculate the simplest math problem for you with any given parameter. Basically it's a big function.

License

Notifications You must be signed in to change notification settings

mnaray/SimplestMathProblem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SimplestMathProblem

This is a console application that will run calculations for the simplest math problem for you with any given parameter. It can also write all the values that it calculates into a file, it just might take a bit more time to do so given your writing speeds.

Here's how the whole thing works:

  • You take any natural number (it only works with integers)
  • If it's even, divide it by 2
  • If it's odd, multiply by 3 and add 1
  • Take the result of those steps and repeat the cycle
  • Eventually you're supposed to hit an endless loop of 4, 2, 1
  • That's when you know you're done calculating all the values.

About

This is a console application that will calculate the simplest math problem for you with any given parameter. Basically it's a big function.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages