OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 (first 1000 terms from T. D. Noe)
FORMULA
q:= n-> is(numtheory[bigomega](n)=3):
select(q, [i*(i+1)/2$i=0..200])[]; # Alois P. Heinz, Mar 27 2024
EXAMPLE
a(1)=28, 28 is a triangular number and 28 = 2*2*7, i.e., is a product of 3 prime factors so is 3-almost prime.
MATHEMATICA
Select[Accumulate[Range[200]], PrimeOmega[#]==3&] (* Harvey P. Dale, Jul 24 2012 *)
PROG
(PARI) issemi(n)=bigomega(n)==2
ok(m, n)=if(isprime(m), issemi(n), isprime(n) && issemi(m))
list(lim)=my(v=List()); lim\=1; for(n=7, (sqrt(8*lim+1)-1)\2, if(if(n%2, ok(n, (n+1)/2), ok(n/2, n+1)), listput(v, n*(n+1)/2))); Vec(v) \\ Charles R Greathouse IV, Jun 12 2017
CROSSREFS
KEYWORD
easy,nice,nonn
AUTHOR
Shyam Sunder Gupta, Oct 19 2002
STATUS
approved