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!)
A198375 Smallest n-digit number whose product of digits is n or 0 if no number exists. 3
1, 12, 113, 1114, 11115, 111116, 1111117, 11111118, 111111119, 1111111125, 0, 111111111126, 0, 11111111111127, 111111111111135, 1111111111111128, 0, 111111111111111129, 0, 11111111111111111145, 111111111111111111137, 0, 0, 111111111111111111111138 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(A068191(n)) = 0 for n >=1.
a(n) <> 0 iff n in { A002473 }. - Michael S. Branicky, Jan 21 2021
EXAMPLE
113, 131, and 311 are the 3-digit numbers whose product of digits is 3; 113 is the smallest.
MATHEMATICA
Table[If[FactorInteger[n][[-1, 1]] > 9, 0, i = (10^n - 1)/9; While[i < 10^n && Times @@ IntegerDigits[i] != n, i++]; If[i == 10^n, 0, i]], {n, 30}] (* T. D. Noe, Oct 24 2011 *)
PROG
(Python)
def A198375(n): return int(str(A198376(n))[::-1])
print([A198375(n) for n in range(1, 25)]) # Michael S. Branicky, Jan 21 2021
CROSSREFS
Cf. A198376 (largest), A002473, A068191.
Sequence in context: A153882 A357650 A322649 * A124651 A231379 A237855
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Oct 23 2011
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 23 15:20 EDT 2024. Contains 371916 sequences. (Running on oeis4.)