login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A296695 Numbers n whose base-4 digits d(m), d(m-1), ... d(0) have #(rises) > #(falls); see Comments. 4
6, 7, 11, 22, 23, 26, 27, 31, 43, 47, 70, 71, 75, 86, 87, 90, 91, 95, 97, 98, 99, 102, 103, 106, 107, 108, 109, 110, 111, 113, 114, 115, 118, 119, 123, 127, 134, 135, 139, 155, 171, 175, 177, 178, 179, 182, 183, 187, 191, 198, 199, 203, 219, 262, 263, 267 (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

Clark Kimberling, Table of n, a(n) for n = 1..10000

EXAMPLE

The base-4 digits of 267 are 1,0,0,2,3; here #(rises) = 2 and #(falls) = 1, so that 267 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

Cf. A296694, A296696, A296712.

Sequence in context: A267413 A297254 A347512 * A228948 A297128 A035110

Adjacent sequences:  A296692 A296693 A296694 * A296696 A296697 A296698

KEYWORD

nonn,base

AUTHOR

Clark Kimberling, Dec 21 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 19 12:23 EDT 2021. Contains 347556 sequences. (Running on oeis4.)