login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A302062
a(n) is the smallest nonnegative k such that n + k divides Fibonacci(n) + k, or -1 if no such k exists.
0
1, 0, -1, -1, -1, 0, -1, -1, 5, 16, 5, 2, 0, 7, 19, 2, 955, 3, 1265, 2062, 51, 2, 27, 80, 0, 0, 121341, 15080, 317755, 1, 8, 27, 867, 122, 5, 2, 0, 312, 13029339, 6680, 25, 2, 40, 39, 35, 2, 4537, 15, 0, 1, 95, 2, 67, 7, 8, 15, 32264490467, 58, 489, 3108, 0, 22, 1, 116, 973, 2, 125, 19, 143
OFFSET
0,9
COMMENTS
Numbers n > 7 such that a(n) = Fibonacci(n) - 2*n are 8, 9, 16, 26, ...
From Robert Israel, Apr 02 2018: (Start)
For n > 7, a(n) = d - n where d is the least divisor of Fibonacci(n)-n that is not less than n.
In particular a(n) = Fibonacci(n)-2*n if n > 7 is in A270821. (End)
FORMULA
a(A023172(n)) = 0.
a(n) = -1 for n is in {2, 3, 4, 6, 7}. Otherwise, 0 <= a(n) <= Fibonacci(n) - 2*n.
EXAMPLE
a(7) = -1 because there is no nonnegative k such that k + 7 divides k + 13.
a(8) = 5 because 5 + 8 = 13 divides 5 + Fibonacci(8) = 26 and 5 is the only nonnegative integer with this property.
a(11) = 2 because 2 + 11 = 13 divides 2 + Fibonacci(11) = 91 and 2 is the least nonnegative integer with this property.
MAPLE
f:= proc(n) local t, d;
t:= combinat:-fibonacci(n);
subs(infinity=-1, min(select(`>=`, numtheory:-divisors(t-n), n))-n)
end proc:
f(0):= 1: f(1):= 0: f(5):= 0:
map(f, [$0..100]); # Robert Israel, Apr 02 2018
MATHEMATICA
a[n_] := Module[{t = Fibonacci[n]}, Min[Select[Divisors[t-n], # >= n&]-n] /. Infinity -> -1];
a[0] = 1; a[1] = 0; a[5] = 0;
a /@ Range[0, 100] (* Jean-François Alcover, Oct 26 2020, after Robert Israel *)
CROSSREFS
Sequence in context: A022509 A138074 A174676 * A161846 A069937 A043295
KEYWORD
sign
AUTHOR
Altug Alkan, Mar 31 2018
STATUS
approved