login
Smallest value of x such that M(x) = -n, where M(x) is Mertens's function A002321.
11

%I #18 Mar 18 2017 22:03:27

%S 3,5,13,31,110,114,197,199,443,659,661,665,1105,1106,1109,1637,2769,

%T 2770,2778,2791,2794,2795,2797,2802,2803,6986,6987,7013,7021,9717,

%U 9718,9719,9721,9726,9741,9749,9822,9823,9830,9831,9833,9857,9861,23833

%N Smallest value of x such that M(x) = -n, where M(x) is Mertens's function A002321.

%H T. D. Noe, <a href="/A051401/b051401.txt">Table of n, a(n) for n = 1..1000</a>

%e M(31) = -4 and that is the first one, so a(4) = 31.

%t s=0; t=0; Do[s=s+MoebiusMu[n]; If[s<t, t=s; Print[n]], {n, 1, 24100}] (* _Robert G. Wilson v_, Jul 03 2000 *)

%Y Cf. A002321, A008683, A051400, A051402.

%K nonn

%O 1,1

%A _Jud McCranie_