A280203 Numbers n such that 3^n - 2^n is not squarefree, but 3^d - 2^d is squarefree for all proper divisors d of n.
10, 11, 42, 52, 57, 203, 272, 497
Offset: 1
Examples
10 is in this sequence because all 3^1 - 2^1 = 1, 3^2 - 2^2 = 5, 3^5 - 2^5 = 211 are squarefrees and 3^10 - 2^10 = 58025 = 5^2*2321 is not squarefree.
Crossrefs
Programs
-
Mathematica
Function[s, DeleteCases[#, 0] &@ MapIndexed[#1 Boole[Total@ Boole@ Map[Function[k, Divisible[#1, k]], Take[s, First@ #2 - 1]] == 0] &, s]]@ Select[Range@ 60, ! SquareFreeQ[3^# - 2^#] &] (* Michael De Vlieger, Dec 30 2016 *)
-
PARI
is(n)=fordiv(n,d, if(!issquarefree(3^d-2^d), return(d==n))); 0 \\ Charles R Greathouse IV, Mar 01 2018
Comments