A110007 a(n) = n-F(F(F(n))) where F(x)=A120613(x)=floor(phi*floor(x/phi)) and phi=(1+sqrt(5))/2.
1, 2, 3, 4, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5
Offset: 1
References
- Benoit Cloitre, On properties of irrational numbers related to the floor function, in preparation, 2005.
Crossrefs
Programs
-
Mathematica
Join[{1,2,3,4},Flatten[Table[Floor[k/GoldenRatio]-Floor[(k-1)/ GoldenRatio],{k,30}]/.{0->{4,5,4},1->{5,5,4,5,4}}]] (* Harvey P. Dale, Dec 12 2017 *)
-
PARI
F(x)=floor((1+sqrt(5))/2*floor((-1+sqrt(5))/2*x)) a(n)=n-F(F(F(n)))
Comments