OFFSET
1,1
COMMENTS
Hep(2) = 7 is the only prime heptagonal number.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Heptagonal Number.
Eric Weisstein's World of Mathematics, Semiprime.
FORMULA
EXAMPLE
a(1) = 4 because Hep(4) = 4*(5*4-3)/2 = 34 = 2 * 17 is semiprime.
a(2) = 5 because Hep(5) = 5*(5*5-3)/2 = 55 = 5 * 11 is semiprime.
a(10) = 34 because Hep(34) = 2839 = 17 * 167 is semiprime and this is also the first iterated heptagonal semiprime Hep(34) = Hep(Hep(4)).
a(20) = 101 because Hep(101) = 25351 = 101 * 251 is semiprime [and brilliant].
MATHEMATICA
Select[Range[700], PrimeOmega[(#(5#-3))/2]==2&] (* Harvey P. Dale, Jul 24 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Feb 15 2006
EXTENSIONS
More terms from Harvey P. Dale, Jul 24 2011
STATUS
approved