OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1, k = 4, since both 3 and 5 are prime and thus squarefree.
2 is not in the sequence since 4*2+1 = 9 is not squarefree.
a(2) = 4, k = 16 since both 15 and 17 are squarefree.
a(3) = 8, k = 32, since both 31 and 33 are squarefree.
a(4) = 9, k = 36, since both 35 and 37 are squarefree.
16 is not in the sequence since 16*4-1 = 63 = 3^2*7 is not squarefree, etc.
MATHEMATICA
With[{nn = 6000}, 1/4 * Select[Rest@ Union@ Flatten@ Table[a^2*b^3, {b, Surd[nn, 3]}, {a, Sqrt[nn/b^3]}], AllTrue[# + {-1, 1}, SquareFreeQ] &] ]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Nov 24 2024
STATUS
approved