OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is sqrt(5)-2. - Amiram Eldar, Mar 21 2022
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 2*floor((n+1)*phi^2)-n-3, where phi = (1+sqrt(5))/2. - Vladeta Jovovic, Jul 05 2004
MATHEMATICA
a[n_] = 2 Floor[(n + 1) GoldenRatio^2] - n - 3;
a /@ Range[100] (* Jean-François Alcover, Oct 28 2019, after Vladeta Jovovic *)
PROG
(Python)
from sympy import fibonacci
def a(n):
k=0
x=0
while n>0:
k=0
while fibonacci(k)<=n: k+=1
x+=10**(k - 3)
n-=fibonacci(k - 1)
return x
def ok(n): return str(a(n))[-3:]=="001"
print([n for n in range(1, 501) if ok(n)]) # Indranil Ghosh, Jun 08 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Jun 01 2004
STATUS
approved