Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
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!)

Revision History for A003634

(Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A003634 Smallest positive integer that is n times its digit sum, or 0 if no such number exists.
(history; published version)
#33 by Alois P. Heinz at Tue May 09 19:45:31 EDT 2023
STATUS

editing

approved

#32 by Alois P. Heinz at Tue May 09 19:45:28 EDT 2023
KEYWORD

nonn,base,easy,look,nice,changed

STATUS

approved

editing

#31 by Alois P. Heinz at Tue May 09 19:44:58 EDT 2023
STATUS

proposed

approved

#30 by Chai Wah Wu at Tue May 09 14:57:03 EDT 2023
STATUS

editing

proposed

#29 by Chai Wah Wu at Tue May 09 14:32:33 EDT 2023
PROG

return c # Chai Wah Wu, May 09 2023

#28 by Chai Wah Wu at Tue May 09 14:32:18 EDT 2023
PROG

(Python)

from itertools import count, combinations_with_replacement

def A003634(n):

for l in count(1):

if 9*l*n < 10**(l-1): return 0

c = 10**l

for d in combinations_with_replacement(range(10), l):

if sorted(str(a:=sum(d)*n)) == [str(e) for e in d] and a>0:

c = min(c, a)

if c < 10**l:

return c # Chai Wah Wu, May 09 2023

STATUS

approved

editing

#27 by N. J. A. Sloane at Wed Mar 31 04:36:36 EDT 2021
STATUS

proposed

approved

#26 by Michel Marcus at Wed Mar 31 04:27:03 EDT 2021
STATUS

editing

proposed

#25 by Michel Marcus at Wed Mar 31 04:26:58 EDT 2021
CROSSREFS

Cf. A005349, A003635.

STATUS

approved

editing

#24 by Peter Luschny at Mon Jan 18 18:11:23 EST 2021
STATUS

reviewed

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 August 6 10:30 EDT 2024. Contains 374969 sequences. (Running on oeis4.)