login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A063660 Min{ m | m > n and both numbers have at least one common decimal digit}. 3
10, 10, 12, 13, 14, 15, 16, 17, 18, 19, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 41, 42, 43, 44, 45, 46, 47, 48, 49, 54, 51, 52, 53, 54, 55, 56, 57, 58, 59, 65, 61, 62, 63, 64, 65, 66, 67, 68, 69 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
MATHEMATICA
nmax = 100; XhasD[x_, d_] := MemberQ[IntegerDigits[x], d]; Reap[For[n = 0, n <= nmax, n++, For[m = n+1, m <= 10*n + 10, m++, a = m; b = False; For[d = 0, d <= 9, d++, If[XhasD[n, d] && XhasD[m, d], b = True; Break[]]]; If[b, Break[]]]; Sow[a]]][[2, 1]] (* Jean-François Alcover, Jul 31 2015, after Harry J. Smith *)
PROG
(PARI) XhasD(x, d)= { local(f); while (x>9, f=x-10*(x\10); if (f==d, return(1)); x\=10); return(x==d) } { for (n=0, 2000, for (m=n + 1, 10*n + 10, a=m; b=0; for (d=0, 9, if (XhasD(n, d) && XhasD(m, d), b=true; break)); if (b, break) ); write("b063660.txt", n, " ", a) ) } \\ Harry J. Smith, Aug 27 2009
(Haskell)
import Data.List (intersect)
a063660 n = head [m | m <- [n + 1 ..],
not $ null $ show m `intersect` show n]
-- Reinhard Zumkeller, Jan 15 2013
CROSSREFS
Sequence in context: A173198 A111381 A369604 * A354049 A354113 A354114
KEYWORD
easy,nonn,base
AUTHOR
Reinhard Zumkeller, Jul 25 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 08:43 EDT 2024. Contains 371927 sequences. (Running on oeis4.)