A274141 Positive numbers divisible by 3^3 or by the square of some other prime.
4, 8, 12, 16, 20, 24, 25, 27, 28, 32, 36, 40, 44, 48, 49, 50, 52, 54, 56, 60, 64, 68, 72, 75, 76, 80, 81, 84, 88, 92, 96, 98, 100, 104, 108, 112, 116, 120, 121, 124, 125, 128, 132, 135, 136, 140, 144, 147, 148, 150, 152, 156, 160, 162, 164, 168, 169, 172, 175, 176
Offset: 1
Keywords
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Select[Range[200], (e = IntegerExponent[#, 3]) > 2 || ! SquareFreeQ[#/3^e] &] (* Amiram Eldar, Feb 25 2021 *)
-
PARI
isok(n) = (((v=valuation(n, 3)) >= 3) || (((m = n/3^v) > 1) && (vecmax((factor(m))[,2]) >=2))); \\ Michel Marcus, Jun 12 2016
Formula
Let A(x) be the number of a(n)<=x. Then A(x)~(1 - 6.5/Pi^2)*x = 0.34141230...*x as x goes to infinity.
Comments