OFFSET
1,2
COMMENTS
The asymptotic density of this sequence is 27/(4*Pi^2). - Amiram Eldar, Oct 01 2020
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
lim = 102; sf = Select[Range[lim], SquareFreeQ]; lim3 = 3^Range[0, Log[3, lim]]; Select[Union[Flatten[Outer[Times, sf, lim3]]], # <= lim &]
PROG
(PARI) is(n)=issquarefree(n/3^valuation(n, 3)) \\ Charles R Greathouse IV, Jul 31 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
José María Grau Ribas, Jul 21 2011
STATUS
approved
