OFFSET
1,1
COMMENTS
FORMULA
EXAMPLE
MAPLE
with(numtheory): a:=n->add(mobius(k), k=1..n): select(n->a(n-1)=0 and a(n+1)=0, [$2..2200]); # Muniru A Asiru, Sep 20 2018
MATHEMATICA
With[{s = Partition[Accumulate@ Array[MoebiusMu, 5300], 3, 1]}, 1 + First /@ Position[s, {0, k_, 0} /; k != 0]] (* Michael De Vlieger, Sep 24 2018 *)
PROG
(PARI) isok(n) = {if (n > 1, x = sum(k=1, n-1, moebius(k)); if (x == 0, if (x + moebius(n) + moebius(n+1) == 0, return (1)); ); ); return (0); } \\ Michel Marcus, Sep 27 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Torlach Rush, Sep 20 2018
STATUS
approved