login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A230058 A230091 A053782 * A102884 A356873 A071852
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Dec 19 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 15:18 EDT 2024. Contains 371960 sequences. (Running on oeis4.)