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.

A204093 Numbers whose set of base-10 digits is {0,6}.

Original entry on oeis.org

0, 6, 60, 66, 600, 606, 660, 666, 6000, 6006, 6060, 6066, 6600, 6606, 6660, 6666, 60000, 60006, 60060, 60066, 60600, 60606, 60660, 60666, 66000, 66006, 66060, 66066, 66600, 66606, 66660, 66666, 600000, 600006, 600060, 600066, 600600, 600606, 600660, 600666
Offset: 0

Views

Author

Reinhard Zumkeller, Jan 10 2012

Keywords

Crossrefs

Programs

  • Haskell
    a204093 n = a204093_list !! n
    a204093_list = map (* 6) a007088_list
    
  • Mathematica
    Map[FromDigits,Tuples[{0,6},6]] (* Paolo Xausa, Oct 30 2023 *)
  • Python
    def a(n): return int(bin(n)[2:].replace('1', '6'))
    print([a(n) for n in range(40)]) # Michael S. Branicky, Jun 06 2021

Formula

a(n) = 6 * A007088(n).