OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
5662 is in the sequence because it is a 10-gonal number and it is divisible by the sum of its digits, 5+6+6+2 = 19.
MATHEMATICA
Select[PolygonalNumber[10, Range[200]], Divisible[#, Total[ IntegerDigits[ #]]]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 06 2018 *)
PROG
(PARI) isok(m) = ispolygonal(m, 10) && !(m % sumdigits(m)); \\ Michel Marcus, Mar 24 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), May 28 2006
EXTENSIONS
Corrected and extended by Harvey P. Dale, May 06 2018
STATUS
approved