OFFSET
1,1
COMMENTS
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
EXAMPLE
The base-10 digits of 139 are 1,3,9; here #(rises) = 2 and #(falls) = 0, so 139 is in the sequence.
MATHEMATICA
z = 200; b = 10; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296712 *)
Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &] (* A296713 *)
Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &] (* A296714 *)
Select[Range[150], Total[Sign[Differences[IntegerDigits[#]]]]>0&] (* Harvey P. Dale, May 21 2021 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Clark Kimberling, Jan 08 2018
STATUS
approved