OFFSET
1,1
EXAMPLE
a(6) = 11 as the 11th Fibonacci number 89 begins with 8, the 6th Fibonacci number.
MAPLE
N:= 30: # attempt to get a(1)..a(N)
V:= Vector(N):
V[1]:= 7:
count:= 1;
F:= Vector(N, combinat:-fibonacci):
L:= ilog10(F[N]):
tmin:= F[1]:
a:= 1: b:= 1:
for n from 3 to 10^5 while count < N do
c:= a+b;
a:= b; b:= c;
v:= floor(c/10^(max(1, ilog10(c)-L)));
while v >= tmin do
j:= ListTools:-BinarySearch(F, v);
if j > 0 and j <= N and V[j] = 0 then
count:= count+1;
V[j]:= n;
jm:= min(select(t -> V[t]=0, [$1..N]));
tmin:= F[jm];
fi;
v:= floor(v/10);
od:
od:
seq(V[i], i=1..jm-1); # Robert Israel, Mar 20 2018
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jul 31 2002
EXTENSIONS
Corrected and extended by Sascha Kurz, Jan 03 2003
a(24)-a(26) from Robert Israel, Mar 20 2018
a(27)-a(40) from Giovanni Resta, Aug 26 2018
STATUS
approved