A110006 a(n) = n-F(F(n)) where F(x)=A120613(x)=floor(phi*floor(x/phi)) and phi=(1+sqrt(5))/2.
1, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4, 3, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 3, 4
Offset: 1
References
- Benoit Cloitre, On properties of irrational numbers related to the floor function, in preparation, 2005.
Crossrefs
Programs
-
PARI
a(n)=n-floor((1+sqrt(5))/2*floor((-1+sqrt(5))/2*floor((1+sqrt(5))/2*floor((-1+sqrt(5))/2*n))))
Comments