login
A078244
Smallest multiple of n using only digits 0 and 5.
3
5, 50, 555, 500, 5, 5550, 5005, 5000, 555555555, 50, 55, 55500, 5005, 50050, 555, 50000, 55505, 5555555550, 55005, 500, 50505, 550, 550505, 555000, 50, 50050, 5505555555, 500500, 5505505, 5550, 555055, 500000, 555555, 555050, 5005
OFFSET
1,1
COMMENTS
a(n) = min{A169964(k): k > 1 and A169964(k) mod n = 0}. [Reinhard Zumkeller, Jan 10 2012]
LINKS
MATHEMATICA
Module[{mlts=Rest[FromDigits/@Tuples[{0, 5}, 12]]}, Table[ SelectFirst[ mlts, Divisible[ #, n]&], {n, 40}]] (* Harvey P. Dale, Aug 14 2021 *)
PROG
(Haskell)
a078244 n = head [x | x <- tail a169964_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