OFFSET
1,3
COMMENTS
Every other digit must be strictly less than its neighbor(s). - M. F. Hasler, Oct 05 2018
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..10000
MATHEMATICA
sdQ[n_]:=Module[{s=Sign[Differences[IntegerDigits[n, 10]]]}, s==PadRight[{}, Length[s], {-1, 1}]]; Select[Range[0, 700], sdQ] (* Vincenzo Librandi, Oct 06 2018 *)
PROG
(PARI) is(n)=!for(i=2, #n=digits(n), (n[i-1]-n[i])*(-1)^i>0||return) \\ M. F. Hasler, Oct 05 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Name corrected and cross-references and a(1) = 0 prepended by M. F. Hasler, Oct 05 2018
STATUS
approved