OFFSET
1,2
COMMENTS
The second digit must be greater than or equal to the first, the third digit must be less than or equal to the second, etc. - M. F. Hasler, Mar 08 2014
PROG
(PARI) is_A032857(n)=!for(i=2, #n=digits(n), (n[i]-n[i-1])*(-1)^i<0&&return) \\ M. F. Hasler, Mar 08 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved