OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The maximal runs of nonsquarefree numbers begin:
4
8 9
12
16
18
20
24 25
27 28
32
36
40
44 45
48 49 50
MAPLE
state:= 0:
R:= NULL: count:= 0:
for i from 4 while count < 100 do
if not numtheory:-issqrfree(i) then state:= 1
elif state = 1 then R:= R, i-1; count:= count+1; state:= 0
fi
od:
R; # Robert Israel, Sep 15 2025
MATHEMATICA
Max/@Split[Select[Range[100], !SquareFreeQ[#]&], #1+1==#2&]//Most
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 15 2024
STATUS
approved