OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..14300 (all terms < 10^11)
EXAMPLE
13175 contains 17 as a substring; the sum of digits of 13175 is 17, and 13175 is divisible by 17. Thus, 13175 is in this sequence.
MATHEMATICA
d17Q[n_] := Module[{idn = IntegerDigits[n]}, Total[idn] == 17 && MemberQ[Partition[idn, 2, 1], {1, 7}]]; Select[17*Range[20000], d17Q]
PROG
(Python)
def ok(n): s = str(n); return n%17==0 and '17' in s and sum(map(int, s))==17
print(list(filter(ok, range(214218)))) # Michael S. Branicky, Aug 06 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Aug 06 2021
STATUS
approved