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”).

A334403
Harshad numbers with sum of digits equal to 18.
1
198, 288, 378, 396, 468, 486, 558, 576, 594, 648, 666, 684, 738, 756, 774, 792, 828, 846, 864, 882, 918, 936, 954, 972, 990, 1098, 1188, 1278, 1296, 1368, 1386, 1458, 1476, 1494, 1548, 1566, 1584, 1638, 1656, 1674, 1692, 1728, 1746, 1764, 1782, 1818, 1836, 1854
OFFSET
1,1
COMMENTS
Even numbers with sum of digits equal to 18 are Harshad numbers (A005349).
If k is a term, then so is 10*k. - Robert Israel, Mar 26 2023
LINKS
EXAMPLE
198/18 = 11.
MAPLE
filter:= n -> convert(convert(n, base, 10), `+`) = 18:
select(filter, [seq(i, i=18...4000, 18)]); # Robert Israel, Mar 26 2023
MATHEMATICA
Select[18 * Range[100], Plus @@ IntegerDigits[#] == 18 &] (* Amiram Eldar, Sep 08 2020 *)
PROG
(PARI) isok(m) = my(s=sumdigits(m)); (s==18) && !(m%s); \\ Michel Marcus, Sep 08 2020
(PARI) first(n) = {my(res = vector(n), t = 0); forstep(i = 18, oo, 18, if(vecsum(digits(i)) == 18, t++; res[t] = i; if(t >= n, return(res) ) ) ) } \\ David A. Corneth, Sep 08 2020
CROSSREFS
Intersection of A005349 and A235228.
Subsequence of A008600.
Cf. A002998.
Sequence in context: A260193 A025366 A248534 * A238230 A055971 A075293
KEYWORD
nonn,easy,base
AUTHOR
Davide Rotondo, Sep 08 2020
EXTENSIONS
More terms from Michel Marcus, Sep 08 2020
STATUS
approved