login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A296692 Numbers n 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

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

EXAMPLE

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

Cf. A296691, A296693, A296712.

Sequence in context: A230058 A230091 A053782 * A102884 A071852 A275809

Adjacent sequences:  A296689 A296690 A296691 * A296693 A296694 A296695

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 11 15:41 EST 2019. Contains 329017 sequences. (Running on oeis4.)