OFFSET
1,3
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
6501 is a pentagonal number whose sum of digits 6+5+0+1 = 12 and product of digits 6*5*0*1 = 0 are both pentagonal.
MATHEMATICA
sod[n_] := Plus @@ IntegerDigits[n]; pod[n_] := Times @@ IntegerDigits[n]; pentQ[n_] := n == 0 || IntegerQ[(Sqrt[24*n + 1] + 1)/6]; Select[Table[n*(3*n - 1)/2, {n, 0, 1000}], pentQ[sod[#]] && pentQ[pod[#]] &] (* Amiram Eldar, Feb 06 2021 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 13 2006
EXTENSIONS
Offset and data corrected by Amiram Eldar, Feb 06 2021
STATUS
approved