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

Numbers whose base-10 representation Sum_{i=0..m} d(i)*10^i has d(0) <= d(1) >= d(2) <= ...
6

%I #22 Feb 12 2021 22:02:32

%S 1,2,3,4,5,6,7,8,9,10,11,20,21,22,30,31,32,33,40,41,42,43,44,50,51,52,

%T 53,54,55,60,61,62,63,64,65,66,70,71,72,73,74,75,76,77,80,81,82,83,84,

%U 85,86,87,88,90,91,92,93,94,95,96,97,98,99,110,111,120

%N Numbers whose base-10 representation Sum_{i=0..m} d(i)*10^i has d(0) <= d(1) >= d(2) <= ...

%H David A. Corneth, <a href="/A032907/b032907.txt">Table of n, a(n) for n = 1..5343</a> (all terms < 20000)

%o (PARI) is(n)=my(d=digits(n));r=1;forstep(i=#d,2,-1,if((-1)^(#d-i)*d[i]>(-1)^(#d-i)*d[i-1],r=0;break));r \\ _David A. Corneth_, Feb 01 2015

%Y Differs from A032873 and A009996.

%K nonn,base

%O 1,2

%A _Clark Kimberling_