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!)
A296696 Numbers whose base-4 digits d(m), d(m-1), ... d(0) have #(rises) < #(falls); see Comments. 4
4, 8, 9, 12, 13, 14, 16, 20, 32, 36, 37, 40, 41, 48, 52, 53, 56, 57, 58, 60, 61, 62, 64, 68, 72, 73, 76, 77, 78, 80, 84, 100, 116, 120, 121, 128, 132, 136, 137, 140, 141, 142, 144, 145, 146, 147, 148, 149, 152, 153, 156, 157, 158, 160, 164, 165, 168, 169 (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 A296694-A296696 partition the natural numbers. See the guide at A296712.
LINKS
EXAMPLE
The base-4 digits of 196 are 3,0,1,0; here #(rises) = 1 and #(falls) = 2, so 196 is in the sequence.
MATHEMATICA
z = 200; b = 4; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296694 *)
Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &] (* A296695 *)
Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &] (* A296696 *)
CROSSREFS
Sequence in context: A306976 A266142 A297252 * A297129 A078137 A294574
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Dec 21 2017
EXTENSIONS
Example corrected by Harvey P. Dale, Sep 04 2018
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 August 20 14:36 EDT 2024. Contains 375336 sequences. (Running on oeis4.)