cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A078244 Smallest multiple of n using only digits 0 and 5.

Original entry on oeis.org

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

Views

Author

Amarnath Murthy, Nov 23 2002

Keywords

Comments

a(n) = min{A169964(k): k > 1 and A169964(k) mod n = 0}. [Reinhard Zumkeller, Jan 10 2012]

Crossrefs

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