OFFSET
1,1
COMMENTS
LINKS
Enrique Pérez Herrero, Table of n, a(n) for n = 1..5000
OEIS Wiki, Ordered prime signatures
EXAMPLE
a(2) = 20 because 20 = 2*2*5 and 2 < 5.
Note that 18 = 2*3^2 is not in the sequence, even though it has prime signature (2,1), because its ordered prime signature is (1,2) (A095990). Prime signatures correspond to partitions of Omega(n), while ordered prime signatures correspond to compositions of Omega(n).
MATHEMATICA
Take[ Sort[ Flatten[ Table[ Prime[p]^2 Prime[q], {q, 2, 33}, {p, q - 1}]]], 54] (* Robert G. Wilson v, Jul 28 2004 *)
Select[Range[10^5], FactorInteger[#][[All, 2]]=={2, 1}&] (* Enrique Pérez Herrero, Jun 27 2012 *)
PROG
(PARI) list(lim)=my(v=List()); forprime(q=3, lim\4, forprime(p=2, min(sqrtint(lim\q), q-1), listput(v, p^2*q))); Set(v) \\ Charles R Greathouse IV, Feb 26 2014
(Python)
from sympy import factorint
def ok(n): return list(factorint(n).values()) == [2, 1]
print([k for k in range(550) if ok(k)]) # Michael S. Branicky, Dec 20 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alford Arnold, Jul 24 2004
EXTENSIONS
Edited and extended by Robert G. Wilson v and Rick L. Shepherd, Jul 27 2004
STATUS
approved