login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A078249
Smallest multiple of n using all the digits other than used by n, or 0 if no such number exists.
0
203456789, 103456798, 102456789, 102357896, 123467890, 102345798, 102345698, 102345976, 102345678, 0, 203548697, 30457896, 20465978, 20356798, 23467890, 20357984, 20358469, 20345796, 20346587, 0, 30457896, 103465978, 10456789
OFFSET
1,1
COMMENTS
a(n) = 0 if n==0 (mod 10), n ends in 5 and uses 0, n uses all even digits, or n uses all 9 nonzero digits.
MATHEMATICA
sp[n_]:=Module[{digs=Complement[Range[0, 9], IntegerDigits[n]]}, Min[ Select[ FromDigits/@ Permutations[digs], IntegerLength[#]==(10-Length[ Union[ IntegerDigits[n]]])&&Divisible[#, n]&]]]; Array[sp, 25]/.\[Infinity]->0 (* Harvey P. Dale, Aug 17 2021 *)
CROSSREFS
Sequence in context: A132205 A358019 A015427 * A243363 A273094 A226079
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 23 2002
EXTENSIONS
More terms from Hans Havermann, Jan 19 2004
STATUS
approved