OFFSET
1,1
EXAMPLE
MAPLE
f:= proc(k) local j;
for j from 0 do if not numtheory:-issqrfree(2^j+k) then return j fi
od;
end proc:
A:= 2: m:= 2: count:= 1:
for i from 1 by 2 while count < 19 do
if i mod 3 <> 0 and m >= 6 then next fi;
if i mod 5 <> 0 and m >= 20 then next fi;
v:= f(i);
if v > m then A:= A, v; m:= v; count:= count+1; fi;
od:
A;
MATHEMATICA
r = 0; Rest@ Reap[Do[k = 0; While[SquareFreeQ[2^k + i], k++]; If[k > r, Sow[r]; r = k], {i, 0, 2^16}] ][[-1, 1]] (* Michael De Vlieger, Aug 27 2023 *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Israel, Aug 27 2023
EXTENSIONS
a(20) from Michael S. Branicky, Aug 30 2023
STATUS
approved