login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A185211
Triangular numbers for which the product of the digits is a nonzero hexagonal number.
1
1, 6, 153, 231, 351, 465, 741, 6786, 24531, 57291, 58311, 123753, 153181, 167331, 278631, 325221, 372816, 613278, 783126, 1136278, 1476621, 1511191, 1516411, 1783216, 2191371, 2512161, 2676141, 9127128, 37311841, 44731611, 51121216, 135112141, 137141641
OFFSET
1,2
COMMENTS
This sequence is a subsequence of A117310.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..64
EXAMPLE
51121216 is included because 5*1*1*2*1*2*1*6=120 and 120 is a hexagonal number.
MATHEMATICA
nn=20000; Select[With[{hex=Table[n(2n-1), {n, 0, nn}]}, Select[Accumulate[ Range[ 0, nn]], MemberQ[hex, Times@@ IntegerDigits[#]]&]], DigitCount[ #, 10, 0]==0&]
PROG
(PARI) is(n)=if(ispolygonal(n, 3), my(v=digits(n), p=prod(i=1, #v, v[i])); p && ispolygonal(p, 6), 0) \\ Charles R Greathouse IV, Dec 20 2012
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Harvey P. Dale, Dec 20 2012
STATUS
approved