OFFSET
1,1
COMMENTS
From Kevin P. Thompson, May 03 2022: (Start)
a(39) >= 160 (160^160-1 is squarefree; 160^160+1 has no known square factors but is not completely factored).
162, 186, 198, and 256 are also terms in this sequence. (End)
EXAMPLE
6 is a term since 6^6-1 = 46655 = 5*7*31*43 and 6^6+1 = 46657 = 13*37*97 are both squarefree.
MATHEMATICA
Select[Range@42, SquareFreeQ[#^#-1]&&SquareFreeQ[#^#+1]&]
PROG
(PARI) isok(k) = issquarefree(k^k-1) && issquarefree(k^k+1); \\ Michel Marcus, Feb 22 2021
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Vladimir Joseph Stephan Orlovsky, Mar 19 2011
EXTENSIONS
a(11)-a(25) from D. S. McNeil, Mar 22 2011
a(26)-a(31) from Amiram Eldar, Feb 22 2021
a(32)-a(38) (from FactorDB) added by Kevin P. Thompson, May 03 2022
STATUS
approved