OFFSET
1,3
COMMENTS
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.
a(n) = A178403(n) for n < 48. - Reinhard Zumkeller, May 27 2010
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
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
FORMULA
a(n) ~ n. - Charles R Greathouse IV, Sep 09 2011
PROG
(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
(PARI) is_A134336(n)={vecmax(n=Set(digits(n)))-vecmin(n)==#n-1} \\ M. F. Hasler, Dec 24 2014
(Python)
def ok(n): d = sorted(set(map(int, str(n)))); return d[-1]-d[0]+1 == len(d)
print([k for k in range(324) if ok(k)]) # Michael S. Branicky, Dec 12 2023
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Rick L. Shepherd, Oct 21 2007
EXTENSIONS
Edited by N. J. A. Sloane, Aug 06 2012
STATUS
approved