A249025 Numbers k such that 3^k - 1 is not squarefree.
2, 4, 5, 6, 8, 10, 12, 14, 15, 16, 18, 20, 22, 24, 25, 26, 28, 30, 32, 34, 35, 36, 38, 39, 40, 42, 44, 45, 46, 48, 50, 52, 54, 55, 56, 58, 60, 62, 64, 65, 66, 68, 70, 72, 74, 75, 76, 78, 80, 82, 84, 85, 86, 88, 90, 92, 94, 95, 96, 98, 100, 102, 104, 105, 106
Offset: 1
Keywords
Links
- Amiram Eldar, Table of n, a(n) for n = 1..407 (terms 1..121 from Michel Marcus)
Programs
-
Magma
[n: n in [1..110]| not IsSquarefree(3^n-1)]; // Vincenzo Librandi, Oct 25 2014
-
Maple
select(t -> igcd(t,10) > 1 or not numtheory:-issqrfree(3^t-1), [$1..150]); # Robert Israel, Mar 16 2017
-
Mathematica
Select[Range[120], ! SquareFreeQ[3^# - 1] &] (* Vincenzo Librandi, Oct 25 2014 *)
-
PARI
for(k=1, 1e3, if(!issquarefree(3^k-1), print1(k, ", ")))
Comments