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!)
A134336 Nonnegative integers n containing each digit between n's smallest and largest decimal digits. 8

%I #20 Dec 12 2023 15:58:17

%S 0,1,2,3,4,5,6,7,8,9,10,11,12,21,22,23,32,33,34,43,44,45,54,55,56,65,

%T 66,67,76,77,78,87,88,89,98,99,100,101,102,110,111,112,120,121,122,

%U 123,132,201,210,211,212,213,221,222,223,231,232,233,234,243,312,321,322,323

%N Nonnegative integers n containing each digit between n's smallest and largest decimal digits.

%C A032981 is a subsequence; the term 102 is the first positive integer not also in A032981. A171102 (pandigital numbers) and A033075 are subsequences. Union of A010785 (repdigits) and A108965.

%C a(n) = A178403(n) for n < 48. - _Reinhard Zumkeller_, May 27 2010

%C Equivalently, numbers with the property that the set of its decimal digits is a set of consecutive numbers. - _Tanya Khovanova_ and _Charles R Greathouse IV_, Jul 31 2012

%H Michael S. Branicky, <a href="/A134336/b134336.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) ~ n. - _Charles R Greathouse IV_, Sep 09 2011

%o (PARI) is(n)=my(v=vecsort(eval(Vec(Str(n))),,8));for(i=2,#v,if(v[i]!=1+v[i-1],return(0)));1 \\ _Tanya Khovanova_ and _Charles R Greathouse IV_, Jul 31 2012

%o (PARI) is_A134336(n)={vecmax(n=Set(digits(n)))-vecmin(n)==#n-1} \\ _M. F. Hasler_, Dec 24 2014

%o (Python)

%o def ok(n): d = sorted(set(map(int, str(n)))); return d[-1]-d[0]+1 == len(d)

%o print([k for k in range(324) if ok(k)]) # _Michael S. Branicky_, Dec 12 2023

%Y Cf. A032981, A050278, A033075 (a subsequence), A010785, A108965.

%K base,easy,nonn

%O 1,3

%A _Rick L. Shepherd_, Oct 21 2007

%E Edited by _N. J. A. Sloane_, Aug 06 2012

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 19 16:08 EDT 2024. Contains 371794 sequences. (Running on oeis4.)