|
|
A296868
|
|
Numbers whose base-5 digits d(m), d(m-1), ..., d(0) have #(pits) > #(peaks); see Comments.
|
|
4
|
|
|
26, 27, 28, 29, 51, 52, 53, 54, 57, 58, 59, 76, 77, 78, 79, 82, 83, 84, 88, 89, 101, 102, 103, 104, 107, 108, 109, 113, 114, 119, 131, 132, 133, 134, 137, 138, 139, 143, 144, 149, 151, 152, 153, 154, 256, 257, 258, 259, 262, 263, 264, 268, 269, 274, 276, 277
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
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 A296867-A296869 partition the natural numbers. See the guides at A296882 and A296712.
|
|
LINKS
|
|
|
EXAMPLE
|
The base-5 digits of 277 are 2,1,0,2; here #(pits) = 1 and #(peaks) = 0, so 277 is in the sequence.
|
|
MATHEMATICA
|
z = 200; b = 5;
d[n_] := Differences[Sign[Differences[IntegerDigits[n, b]]]];
Select[Range [z], Count[d[#], -2] == Count[d[#], 2] &] (* A296867 *)
Select[Range [z], Count[d[#], -2] < Count[d[#], 2] &] (* A296868 *)
Select[Range [z], Count[d[#], -2] > Count[d[#], 2] &] (* A296869 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|