OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Milan Janjic, Enumerative Formulas for Some Functions on Finite Sets
Eric Weisstein's World of Mathematics, Triangular Number.
Eric Weisstein's World of Mathematics, Almost Prime.
FORMULA
EXAMPLE
a(1) = 15 because T(15) = TriangularNumber(15) = 15*(15+1)/2 = 120 = 2^3 * 3 * 5 is a 5-almost prime.
a(2) = 24 because T(24) = 24*(24+1)/2 = 300 = 2^2 * 3 * 5^2 is a 5-almost prime.
a(3) = 27 because T(27) = 27*(27+1)/2 = 378 = 2 * 3^3 * 7 is a 5-almost prime.
a(4) = 31 because T(27) = 31*(31+1)/2 = 496 = 2^4 * 31 is a 5-almost prime.
a(17) = 84 because T(27) = 84*(84+1)/2 = 3570 = 2 * 3 * 5 * 7 * 17 is a 5-almost prime.
MATHEMATICA
Select[Range[250], PrimeOmega[(#(#+1))/2]==5&] (* Harvey P. Dale, Sep 14 2012 *)
Flatten[Position[Accumulate[Range[700]], _?(PrimeOmega[#]== 5 &)]] (* Vincenzo Librandi, Apr 09 2014 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Feb 13 2006
EXTENSIONS
Corrected and extended by Harvey P. Dale, Apr 02 2011
STATUS
approved