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

A032907
Numbers whose base-10 representation Sum_{i=0..m} d(i)*10^i has d(0) <= d(1) >= d(2) <= ...
6
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, 53, 54, 55, 60, 61, 62, 63, 64, 65, 66, 70, 71, 72, 73, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 110, 111, 120
OFFSET
1,2
LINKS
David A. Corneth, Table of n, a(n) for n = 1..5343 (all terms < 20000)
PROG
(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
CROSSREFS
Differs from A032873 and A009996.
Sequence in context: A032873 A072543 A009996 * A130576 A334145 A190220
KEYWORD
nonn,base
STATUS
approved