login
A078248
Smallest multiple of n using only digits 0 and 9.
19
9, 90, 9, 900, 90, 90, 9009, 9000, 9, 90, 99, 900, 9009, 90090, 90, 90000, 99909, 90, 99009, 900, 9009, 990, 990909, 9000, 900, 90090, 999, 900900, 9909909, 90, 999099, 900000, 99, 999090, 90090, 900, 999, 990090, 9009, 9000, 99999, 90090, 9909909
OFFSET
1,1
COMMENTS
a(n) = min{A097256(k): k > 0 and A097256(k) mod n = 0}. [Reinhard Zumkeller, Jan 10 2012]
LINKS
MATHEMATICA
With[{t=Flatten[Table[FromDigits[Join[{9}, #]]&/@Tuples[{0, 9}, n], {n, 0, 6}]]}, Flatten[Table[Select[t, Divisible[#, i]&, 1], {i, 50}]]] (* Harvey P. Dale, May 31 2014 *)
PROG
(Haskell)
a078248 n = head [x | x <- tail a097256_list, mod x n == 0]
-- Reinhard Zumkeller, Jan 10 2012
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 23 2002
EXTENSIONS
More terms from Ray Chandler, Jul 12 2004
STATUS
approved