cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A296902 Numbers whose base-16 digits d(m), d(m-1), ..., d(0) have #(pits) < #(peaks); see Comments.

Original entry on oeis.org

288, 289, 304, 305, 306, 320, 321, 322, 323, 336, 337, 338, 339, 340, 352, 353, 354, 355, 356, 357, 368, 369, 370, 371, 372, 373, 374, 384, 385, 386, 387, 388, 389, 390, 391, 400, 401, 402, 403, 404, 405, 406, 407, 408, 416, 417, 418, 419, 420, 421, 422, 423
Offset: 1

Views

Author

Clark Kimberling, Jan 12 2018

Keywords

Comments

A pit is an index i such that d(i-1) > d(i) < d(i+1); a peak is an index i such that d(i-1) < d(i) > d(i+1). The sequences A296900-A296902 partition the natural numbers. See the guides at A296712 and A296882.

Examples

			The base-16 digits of 74017 are 1,2,1,2,1; here #(pits) = 1 and #(peaks) = 2, so 74017 is in the sequence.
		

Crossrefs

Programs

  • Mathematica
    z = 200; b = 16;
    d[n_] := Differences[Sign[Differences[IntegerDigits[n, b]]]];
    Select[Range [z], Count[d[#], -2] == Count[d[#], 2] &]  (* A296900 *)
    Select[Range [z], Count[d[#], -2] < Count[d[#], 2] &]   (* A296901 *)
    Select[Range [z], Count[d[#], -2] > Count[d[#], 2] &]   (* A296902 *)