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

Smallest number not occurring earlier having no common digits with n in its decimal representation.
3

%I #11 Nov 28 2016 20:43:03

%S 2,1,4,3,6,5,8,7,10,9,20,30,22,23,24,25,26,27,28,11,33,13,14,15,16,17,

%T 18,19,31,12,29,40,21,50,41,42,44,45,46,32,35,36,51,37,38,39,52,53,55,

%U 34,43,47,48,60,49,70,61,62,63,54,57,58,59,71,72,73,80,74,75,56,64,65

%N Smallest number not occurring earlier having no common digits with n in its decimal representation.

%C For n=1023456789 there is no possible a(n), so the sequence is finite. - _Eric Angelini_, Dec 18 2006

%C a(123456788) is the last term. - _Andrew Weimholt_, Dec 19 2006

%C a(123456788) = 9099900999090090. - Sasha Semenov, Dec 25 2006

%H R. Zumkeller, <a href="/A096779/b096779.txt">Table of n, a(n) for n = 1..10000</a>

%H Hans Havermann, <a href="/A096779/a096779.jpg">Graph of first 2600 terms</a>

%H Sasha Semenov, <a href="/A096779/a096779.txt">Notes on computing this sequence</a> [From rec.math]

%Y Cf. A030238.

%K nonn,base,fini,look

%O 1,1

%A _Reinhard Zumkeller_, Aug 16 2004