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

A296692
Numbers whose base-3 digits d(m), d(m-1), ... d(0) have #(rises) > #(falls); see Comments.
4
5, 14, 17, 32, 41, 44, 46, 47, 50, 53, 59, 86, 95, 98, 113, 122, 125, 127, 128, 131, 134, 136, 137, 139, 140, 143, 149, 152, 154, 155, 158, 161, 167, 176, 179, 221, 248, 257, 260, 275, 284, 287, 289, 290, 293, 296, 302, 329, 338, 341, 356, 365, 368, 370, 371
OFFSET
1,1
COMMENTS
A rise is an index i such that d(i) < d(i+1); a fall is an index i such that d(i) > d(i+1). The sequences A296691-A296693 partition the natural numbers. See the guide at A296712.
LINKS
EXAMPLE
The base-3 digits of 371 are 1,1,1,2,0,2; here #(rises) = 2 and #(falls) = 1, so 371 is in the sequence.
MATHEMATICA
z = 200; b = 3; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296691 *)
Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &] (* A296692 *)
Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &] (* A296693 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Dec 19 2017
STATUS
approved