login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A346904 Numbers with sum of digits equaling 17, divisible by 17, and containing the string "17". 1
13175, 15317, 17153, 17306, 17612, 21743, 30617, 41174, 51731, 61217, 101762, 107117, 110177, 111707, 117062, 117215, 117521, 122417, 125171, 131750, 153017, 153170, 170153, 170306, 170612, 171071, 171224, 171530, 172142, 172601, 173060, 173213, 174131, 175202, 176120, 214217 (list; graph; refs; listen; history; text; internal format)
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
Cf. A121669 (for 19 instead of 17).
Intersection of A008599, A166370, and A293877
Sequence in context: A064252 A252590 A252587 * A235967 A184001 A345583
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Aug 06 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)