OFFSET
1,2
COMMENTS
a(n) = 0 if and only if n is in A013929. - Robert Israel, Jan 21 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local t, k;
t:= 0;
for k from n do
t:= t + numtheory:-mobius(k);
if t=0 then return k-n fi
od
end proc:
map(f, [$1..100]); # Robert Israel, Jan 21 2019
MATHEMATICA
a[n_] := Module[{t = 0, k}, For[k = n, True, k++, t += MoebiusMu[k]; If[t == 0, Return[k - n]]]];
Array[a, 100] (* Jean-François Alcover, Aug 24 2020, after Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 10 2003
EXTENSIONS
Corrected by Robert Israel, Jan 21 2019
STATUS
approved