OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Almost Prime.
Eric Weisstein's World of Mathematics, Hexagonal Number.
FORMULA
EXAMPLE
a(1) = 4 because HexagonalNumber(4) = H(4) = 4*(2*4-1) = 28 = 2^2 * 7 is a 3-almost prime.
a(2) = 5 because H(5) = 5*(2*5-1) = 45 = 3^2 * 5 is a 3-almost prime.
a(3) = 6 because H(6) = 6*(2*6-1) = 66 = 2 * 3 * 11 is a 3-almost prime.
MAPLE
A000384 := proc(n) n*(2*n-1) ; end: isA014612 := proc(n) option remember ; RETURN( numtheory[bigomega](n) = 3) ; end: for n from 1 to 400 do if isA014612(A000384(n)) then printf("%d, ", n) ; fi; od: # R. J. Mathar, Jan 27 2009
MATHEMATICA
Select[Range[300], PrimeOmega[PolygonalNumber[6, #]] == 3 &] (* Amiram Eldar, Oct 06 2024 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Feb 14 2006
EXTENSIONS
151 to 177 inserted and extended by R. J. Mathar, Jan 27 2009
STATUS
approved