OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..500
EXAMPLE
Fibonacci(15) mod 153 + Fibonacci(3) mod 153 = 610 mod 153 + 2 mod 153 = 151 + 2 = 153;
Fibonacci(23) mod 2391 + Fibonacci(91) mod 2391 = 28657 mod 2391 + 4660046610375530309 mod 2391 = 2356 + 35 = 2391;
MAPLE
with(combinat): P:=proc(q) local a, b, i, n;
for n from 1 to q do for i from 1 to ilog10(n) do
a:=trunc(n/10^i); b:=n-a*10^i; if b>0 then
if (fibonacci(a) mod n)+(fibonacci(b) mod n)=n then print(n); break;
fi; fi; od; od; end: P(10^9);
MATHEMATICA
Select[Range[10^4], Total@ Boole@ Function[k, k == Mod[Fibonacci@ First@ #, k] + Mod[Fibonacci@ Last@ #, k] & /@ Map[FromDigits /@ TakeDrop[IntegerDigits@ k, #] &, Range[IntegerLength@ k - 1]]]@ # > 0 &] (* Michael De Vlieger, May 07 2016, Version 10.2 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Paolo P. Lava, May 06 2016
STATUS
approved