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.

Showing 1-3 of 3 results.

A043537 Number of distinct base-10 digits of n.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2
Offset: 1

Views

Author

Keywords

Comments

a(A000079(A130694(n))) = 10. - Reinhard Zumkeller, Jul 29 2007
a(A000290(A016070(n))) = 2. - Reinhard Zumkeller, Aug 05 2010
a(n) = 10 for almost all n. - Charles R Greathouse IV, Oct 02 2013

Crossrefs

Programs

A119797 Numbers m such that m and m+1 have the same number of distinct digits in decimal representation.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 13, 14, 15, 16, 17, 18, 19, 20, 23, 24, 25, 26, 27, 28, 29, 30, 31, 34, 35, 36, 37, 38, 39, 40, 41, 42, 45, 46, 47, 48, 49, 50, 51, 52, 53, 56, 57, 58, 59, 60, 61, 62, 63, 64, 67, 68, 69, 70, 71, 72, 73, 74, 75, 78, 79, 80, 81, 82, 83, 84, 85, 86
Offset: 1

Views

Author

Reinhard Zumkeller, May 25 2006

Keywords

Comments

A043537(a(n)) = A043537(a(n)+1).

Crossrefs

Programs

  • Haskell
    a119797 n = a119797_list !! (n-1)
    a119797_list = f [0..] a043537_list where
       f (u:us) (v:vs@(v':_)) | v /= v'   = f us vs
                              | otherwise = u : f us vs
    -- Reinhard Zumkeller, Jan 04 2012
  • Mathematica
    Select[Range[0,86],CountDistinct[IntegerDigits[#]]==CountDistinct[IntegerDigits[#+1]]&] (* James C. McMahon, Sep 18 2024 *)

Extensions

Offset fixed by Reinhard Zumkeller, Jan 04 2012

A119798 Numbers m such that m and 2*m have the same number of distinct digits in decimal representation.

Original entry on oeis.org

0, 1, 2, 3, 4, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 56, 57, 58, 59, 61, 72, 83, 94, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112, 113
Offset: 1

Views

Author

Reinhard Zumkeller, May 25 2006

Keywords

Comments

A043537(a(n)) = A043537(2*a(n)).

Crossrefs

Programs

  • Haskell
    a119798 n = a119798_list !! (n-1)
    a119798_list = f [0..] a043537_list a043537_list where
       f (z:zs) (u:us) (v:_:vs) | u /= v   = f zs us vs
                                | otherwise = z : f zs us vs
    -- Reinhard Zumkeller, Jan 04 2012
  • Mathematica
    snddQ[n_]:=Count[DigitCount[n],?(#>0&)]==Count[DigitCount[2n], ?(#>0&)]; Select[Range[0,120],snddQ] (* Harvey P. Dale, Oct 07 2012 *)

Extensions

Offset fixed by Reinhard Zumkeller, Jan 04 2012
Showing 1-3 of 3 results.