A078244 Smallest multiple of n using only digits 0 and 5.
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
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..998
Programs
-
Haskell
a078244 n = head [x | x <- tail a169964_list, mod x n == 0] -- Reinhard Zumkeller, Jan 10 2012
-
Mathematica
Module[{mlts=Rest[FromDigits/@Tuples[{0,5},12]]},Table[ SelectFirst[ mlts,Divisible[ #,n]&],{n,40}]] (* Harvey P. Dale, Aug 14 2021 *)
Extensions
More terms from Ray Chandler, Jul 12 2004
Comments