OFFSET
1,2
COMMENTS
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
EXAMPLE
The base-14 digits of 1000000 are 2,8,6,2,12; here #(rises) = 2 and #(falls) = 2, so 1000000 is in the sequence.
MATHEMATICA
z = 200; b = 14; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296753 *)
Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &] (* A296754 *)
Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &] (* A296755 *)
Select[Range[300], Total[Sign[Differences[IntegerDigits[#, 14]]]]==0&] (* Harvey P. Dale, Sep 20 2022 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Clark Kimberling, Jan 08 2018
STATUS
approved