login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A119797
Numbers m such that m and m+1 have the same number of distinct digits in decimal representation.
4
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,3
COMMENTS
A043537(a(n)) = A043537(a(n)+1).
LINKS
MATHEMATICA
Select[Range[0, 86], CountDistinct[IntegerDigits[#]]==CountDistinct[IntegerDigits[#+1]]&] (* James C. McMahon, Sep 18 2024 *)
PROG
(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
CROSSREFS
Sequence in context: A118600 A080543 A285916 * A032972 A210585 A240082
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, May 25 2006
EXTENSIONS
Offset fixed by Reinhard Zumkeller, Jan 04 2012
STATUS
approved