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.

A178788 Characteristic function of numbers having distinct digits in their decimal representation.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1
Offset: 0

Views

Author

Reinhard Zumkeller, Jun 30 2010

Keywords

Comments

a(A010784(n)) = 1; a(A109303(n)) = 0;
first differences of A178787.
a(n) <= A196368(n).
a(n) = 0 for n > 9*9!. - Hieronymus Fischer, Feb 02 2013

Programs

  • Haskell
    import Data.List (nub)
    a178788 n = fromEnum $ nub (show n) == show n
    -- Reinhard Zumkeller, Sep 25 2011
  • Mathematica
    lst = {}; Do[If[Select[Tally[IntegerDigits[n]][[All, 2]], # > 1 &] == {}, AppendTo[lst, 1], AppendTo[lst, 0]], {n, 0, 104}]; lst (* Arkadiusz Wesolowski, May 10 2012 *)

Formula

a(n) = 0^(A055642(n)-A043537(n)).