The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A054659 Increasing sequence with no repeating digits and no digits shared with previous term. 3

%I #9 Jul 01 2022 05:33:57

%S 0,1,2,3,4,5,6,7,8,9,10,23,40,51,60,71,80,91,203,415,602,713,802,913,

%T 2045,3167,4025,6137,8024,9135,20467,31589,40267,51389,60247,81359

%N Increasing sequence with no repeating digits and no digits shared with previous term.

%C a(11)=23 since a(10)=10 and any number from 11 to 21 would share a digit between the two terms while 22 has a repeated digit

%o (Python)

%o def ok(s, t): return len(set(t)) == len(t) and len(set(s+t)) == len(s+t)

%o def agen(): # generator of complete sequence of terms

%o an, MAX = 0, 987654321

%o while True:

%o if an < MAX: yield an

%o else: return

%o an, s = an+1, str(an)

%o MAX = 10**(10-len(s))

%o while an < MAX and not ok(s, str(an)): an += 1

%o print(list(agen())) # _Michael S. Branicky_, Jun 30 2022

%Y Cf. A030283.

%K nonn,base,easy,fini,full

%O 1,3

%A _Henry Bottomley_, Apr 18 2000

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 June 11 10:58 EDT 2024. Contains 373311 sequences. (Running on oeis4.)