|
|
A364455
|
|
Record values of A365196.
|
|
1
|
|
|
2, 3, 4, 5, 6, 8, 18, 53, 94, 97, 98, 106, 132, 148, 150, 153, 155, 165, 204, 312
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(3) = 4 because A365196(9) = 4 is the first term of A365196 greater than 4.
|
|
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
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|