Skip to content

jsaffer/Recaman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recamán Sequence

Calculates and visualizes the Recamán sequence up to a given point.


Definition:

  • Start at 0
  • The step size increments each time from one upwards
  • No number may occur more than once
  • No negative numbers are allowed
  • If possible take the descending step

The begin of the sequence is: 0, 1, 3, 6, 2, 7, 13, 20, 12 ...

The steps are visualized by semi-circles alternately below and above the number line, resulting in the picture presented in Numberphile's YouTube video

Here the resulting picture for 66 steps:

Alt text

About

Calculate and visualize the Recamán sequence

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages