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!)
A178341 Smallest multiple of 3 such that decimals digits 1, ..., k (k = 1, ..., 9) and 0 appear in any order. 1
12, 12, 123, 12234, 12345, 123456, 12234567, 12345678, 123456789, 1023456789 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
4 * 3 = 12
4 * 3 = 12
41 * 3 = 123
4078 * 3 = 12234
4115 * 3 = 12345
41152 * 3 = 123456
4078189 * 3 = 12234567
4115226 * 3 = 12345678
41152263 * 3 = 123456789
341152263 * 3 = 1023456789
PROG
(Python)
def a(n):
digset = "".join(str(d) for d in range(1, min(n+1, 11)))
target, lb = set(digset), int(digset) if n < 10 else 1023456789
m = lb if lb%3 == 0 else lb + 3 - lb%3
while target - set(str(m)): m += 3
return m
print([a(n) for n in range(1, 11)]) # Michael S. Branicky, Dec 12 2021
CROSSREFS
Cf. A178303.
Sequence in context: A219400 A219448 A067123 * A165833 A038338 A221796
KEYWORD
base,easy,fini,full,nonn
AUTHOR
Eva-Maria Zschorn (e-m.zschorn(AT)zaschendorf.km3.de), May 25 2010
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 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)