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”).

A076489
Number of common (distinct) digits of consecutive natural numbers.
10
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 2, 2, 2, 2, 2
OFFSET
0,101
COMMENTS
a(A226637(n)) = 0. Reinhard Zumkeller, Sep 01 2013
This is the prefix overlap between the decimal expansions of n and n+1 (cf. A238845). - N. J. A. Sloane, Mar 22 2014
LINKS
MATHEMATICA
Table[Length[Intersection[IntegerDigits[w], IntegerDigits[w+1]]], {w, 0, 200}]
PROG
(Haskell)
import Data.List (intersect, nub)
a076489 n = a076489_list !! n
a076489_list = map (length . nub) $
zipWith intersect (tail a031298_tabf) a031298_tabf
-- Reinhard Zumkeller, Sep 01 2013
CROSSREFS
Cf. A001477, A031298, A076490, A238845, A239092 (partial sums).
Sequence in context: A027388 A114295 A004216 * A211666 A297037 A127322
KEYWORD
base,easy,nonn
AUTHOR
Labos Elemer, Oct 21 2002
EXTENSIONS
Initial zero prepended and offset adjusted by Reinhard Zumkeller, Sep 01 2013
STATUS
approved