login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A081222 Smallest number m with Sum_{k=n..n+m} mu(k) = 0, where mu=A008683 (Möbius function). 1
1, 92, 36, 0, 1, 1, 3, 0, 0, 1, 4, 0, 1, 5, 2, 0, 5, 0, 2, 0, 9, 1, 3, 0, 0, 3, 0, 0, 6, 4, 2, 0, 40, 9, 2, 0, 1, 4, 2, 0, 17, 15, 3, 0, 0, 1, 4, 0, 0, 0, 2, 0, 2, 0, 16, 0, 4, 1, 6, 0, 1, 5, 0, 0, 1, 27, 2, 0, 1, 17, 6, 0, 1, 5, 0, 0, 1, 8, 3, 0, 0, 1, 2, 0, 24, 19, 2, 0, 2, 0, 12, 0, 9, 7, 2, 0, 120, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) = 0 if and only if n is in A013929. - Robert Israel, Jan 21 2019
LINKS
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
Sequence in context: A323060 A031200 A075479 * A033412 A015236 A057702
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 10 2003
EXTENSIONS
Corrected by Robert Israel, Jan 21 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 29 13:01 EST 2024. Contains 370425 sequences. (Running on oeis4.)