OFFSET
1,1
COMMENTS
Liouville function lambda(n) (A008836) is negative.
m is a term iff mu(m)^m < 0 (A080323(a(n))<0), where mu is the Moebius function (A008683). - Reinhard Zumkeller, Feb 14 2003
The asymptotic density of this sequence is 2/Pi^2 (A185197). - Amiram Eldar, Oct 06 2020
REFERENCES
H. Gupta, A formula for L(n), J. Indian Math. Soc., 7 (1943), 68-71.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
H. Gupta, A formula for L(n), J. Indian Math. Soc., 7 (1943), 68-71. [Annotated scanned copy]
EXAMPLE
a(27) = 3*5*7 = 105 is the least nonprime.
MATHEMATICA
Select[Range[3, 300], SquareFreeQ[#] && LiouvilleLambda[#] == -1 &] (* Jean-François Alcover, Jul 30 2013 *)
Select[Range[1, 255, 2], MoebiusMu[#] == -1 &] (* Amiram Eldar, Oct 06 2020 *)
PROG
(PARI) isok(n) = (n%2) && issquarefree(n) && (omega(n)%2) \\ Michel Marcus, Jun 15 2013
(PARI) is(n)=if(n%2, my(f=factor(n)[, 2]); n>1 && vecmax(f)<2 && #f%2, 0) \\ Charles R Greathouse IV, Jun 15 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
James A. Sellers, Jul 07 2000
STATUS
approved