OFFSET
0,3
COMMENTS
Presumably a(n) ~ 0.5 n^2 since I assume the product of the digits of almost all triangular numbers is 0. - Charles R Greathouse IV, Dec 20 2012
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..10000
EXAMPLE
153 is in the sequence because (1) it is a triangular number and (2) the product of its digits 1*5*3=15 is a hexagonal number.
MATHEMATICA
nn=200; With[{hex=Table[n(2n-1), {n, 0, nn}]}, Select[Accumulate[ Range[ 0, nn]], MemberQ[hex, Times@@IntegerDigits[#]]&]](* Harvey P. Dale, Dec 20 2012 *)
PROG
(PARI) is(n)=if(ispolygonal(n, 3), my(v=digits(n)); ispolygonal(prod(i=1, #v, v[i]), 6), 0) \\ Charles R Greathouse IV, Dec 20 2012
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 26 2006
EXTENSIONS
Corrected (a(11)=300 inserted) by Harvey P. Dale, Dec 20 2012
STATUS
approved