OFFSET
0,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..54
EXAMPLE
a(7) = 26 because Fibonacci(26) = 121393 contains Fibonacci(7) = 13.
MAPLE
with(combinat, fibonacci):
printf("%d %d \n", 0, 15):
for n from 1 to 26 do:
ii:=0:fn:=fibonacci(n):l:=length(fn) :
for k from 1 to 10000 while(ii=0) do:
fk:=fibonacci(k):xk:=convert(fk, base, 10):nk:=nops(xk):
n1:=nk-l+1:
for j from 1 to n1 while(ii=0) do:
s:=sum('xk[j+i-1]*10^(i-1)', 'i'=1..l):
if s=fn and fn<>fk
then
ii:=1:printf("%d %d \n", n, k):
else
fi:
od:
od:
od:
MATHEMATICA
Table[k = 1; While[Nand[StringContainsQ[ToString@ Fibonacci@ k, ToString@ Fibonacci@ n], Fibonacci@ k != Fibonacci@ n], k++]; k, {n, 0, 38}] (* Michael De Vlieger, Oct 19 2015 *)
PROG
(Python)
from gmpy2 import fib2, digits
def A263400(n):
b, a = fib2(n)
s, m = digits(b), n
while True:
a, b, m = b, a+b, m+1
t = digits(b)
if b > a and s in t:
return m # Chai Wah Wu, Oct 27 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Oct 17 2015
EXTENSIONS
a(31) - a(47) from Michael De Vlieger, Oct 19 2015
STATUS
approved