OFFSET
1,2
EXAMPLE
999 is in the sequence as it is a repdigit (all digits are equal (in base 10)) and 999 is divisible by its sum of digits; 9 + 9 + 9 = 27 is a divisors of 999. - David A. Corneth, Oct 20 2024
MATHEMATICA
Select[Union[FromDigits/@Flatten[Table[PadRight[{}, i, n], {n, 9}, {i, 27}], 1]], Divisible[#, DigitSum[#]]&] (* James C. McMahon, Jan 07 2025 *)
PROG
(PARI) repd(n) = 10^((n+8)\9)\9*((n-1)%9+1); \\ A010785
lista(nn) = select(x->(x%sumdigits(x)==0), vector(nn, k, repd(k))); \\ Michel Marcus, Jan 07 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
John Bibby, Oct 20 2024
EXTENSIONS
More terms from David A. Corneth, Oct 20 2024
STATUS
approved