login
Nonprime numbers with distinct digits in ascending order.
2

%I #10 Sep 27 2020 14:53:13

%S 1,4,6,8,9,12,14,15,16,18,24,25,26,27,28,34,35,36,38,39,45,46,48,49,

%T 56,57,58,68,69,78,123,124,125,126,128,129,134,135,136,138,145,146,

%U 147,148,156,158,159,168,169,178,189,234,235,236,237,238,245,246,247

%N Nonprime numbers with distinct digits in ascending order.

%C Sequence is finite with 411 terms, last term is a(411) = 123456789.

%C Complement of A052015 with respect to A009993. Supersequence of A211772.

%H Jaroslav Krizek, <a href="/A211771/b211771.txt">Table of n, a(n) for n = 1..411</a> (complete list)

%F A178788(a(n)) = 1.

%t nnddQ[n_]:=!PrimeQ[n]&&Max[DigitCount[n]]<2&&Min[Differences[ IntegerDigits[ n]]]>0; Select[Range[300],nnddQ] (* _Harvey P. Dale_, Sep 27 2020 *)

%Y Cf. A052015 (primes with distinct digits in ascending order), A009993 (numbers with distinct digits in ascending order), A211772 (nonprime numbers all of whose divisors are numbers whose decimal digits are in ascending order).

%K nonn,base,fini

%O 1,2

%A _Jaroslav Krizek_, May 07 2012