A258211 Nonsquarefree numbers of the form 4*k + 2.
18, 50, 54, 90, 98, 126, 150, 162, 198, 234, 242, 250, 270, 294, 306, 338, 342, 350, 378, 414, 450, 486, 490, 522, 550, 558, 578, 594, 630, 650, 666, 686, 702, 722, 726, 738, 750, 774, 810, 846, 850, 882, 918, 950, 954, 990, 1014, 1026, 1050, 1058, 1062, 1078, 1098, 1134, 1150
Offset: 1
Examples
18 is in this sequence because 4 * 4 + 2 = 18 = 2 * 3^2.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Square Part.
Crossrefs
Programs
-
Magma
[n*4+2: n in [1..300] | not IsSquarefree(4*n+2)];
-
Maple
remove(numtheory:-issqrfree, [4*i+2 $ i=0..1000]); # Robert Israel, May 27 2015
-
Mathematica
Select [Range[300], ! SquareFreeQ[(4 # - 2)] &] 4 - 2 (* Vincenzo Librandi, May 24 2015 *)
-
PARI
select(n->!issquarefree(n), vector(50,n,2*n+9))*2 \\ Charles R Greathouse IV, May 26 2015
Formula
a(n) = 2*A053850(n). - Charles R Greathouse IV, May 26 2015
Comments