Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 2.12 KB

File metadata and controls

61 lines (36 loc) · 2.12 KB

List of numbers of Recamán's sequence

What is this?

This repository contains a list of a lot of numbers of Recamán's sequence. The sequence is computed using the following rules:

  • start at 0
  • your jump distance increases by 1 every iteration
  • jump down if you can:
    • the number you would jump down hasn't already been visited
    • and the number is greater than 0
  • else you jump up

This results in the following sequence: 0, 1, 3, 6, 2, 7, 13, 20, 12, 21, 11, 22, 10, 23, ...

recamanFirst 100

some facts

If you calculate the first 1k numbers of the sequence, you still won't have visited the number 19. You will also have missed 61, 76, 133 and a lot of others. The number 19 is only visited after 99,735 iterations.

After 100k iterations the smallest missing number is 1355. You will find that it isn't even in my list of the first 100 million numbers. It's also missing from the list of the first 500 million nubmers because 1355 only appears at iteration 325,374,625,245 (see https://oeis.org/A057167/b057167.txt).

Why?

Yeah, don't ask. I guess this counts as a hobby of some sort.

Does anyone really need this repository? - I think not.


Plotted visualisation inspired by⁣ Alex Bellos and Edmund Harriss:

recaman visualisatoin

links


recaman first 1k

recaman first 100 million