This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A296706 Numbers n whose base-8 digits d(m), d(m-1), ..., d(0) have #(rises) = #(falls); see Comments. 4
 1, 2, 3, 4, 5, 6, 7, 9, 18, 27, 36, 45, 54, 63, 65, 66, 67, 68, 69, 70, 71, 73, 80, 81, 88, 89, 90, 96, 97, 98, 99, 104, 105, 106, 107, 108, 112, 113, 114, 115, 116, 117, 120, 121, 122, 123, 124, 125, 126, 129, 130, 131, 132, 133, 134, 135, 138, 139, 140 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 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 A296706-A296707 partition the natural numbers. See the guide at A296712. LINKS Clark Kimberling, Table of n, a(n) for n = 1..10000 EXAMPLE The base-8 digits of 140 are 2,1,4; here #(rises) = 1 and #(falls) = 1, so that 140 is in the sequence. MATHEMATICA z = 200; b = 8; d[n_] := Sign[Differences[IntegerDigits[n, b]]]; Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296706 *) Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &]  (* A296707 *) Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &]  (* A296708 *) CROSSREFS Cf. A296707, A296708, A296712. Sequence in context: A297142 A048305 A043711 * A029803 A297265 A048319 Adjacent sequences:  A296703 A296704 A296705 * A296707 A296708 A296709 KEYWORD nonn,easy,base AUTHOR Clark Kimberling, Jan 08 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified December 8 17:36 EST 2019. Contains 329865 sequences. (Running on oeis4.)