|
|
A296747
|
|
Numbers whose base-12 digits d(m), d(m-1), ..., d(0) have #(rises) = #(falls); see Comments.
|
|
4
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 26, 39, 52, 65, 78, 91, 104, 117, 130, 143, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 157, 168, 169, 180, 181, 182, 192, 193, 194, 195, 204, 205, 206, 207, 208, 216, 217, 218, 219, 220, 221, 228, 229, 230
(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 A296747-A296749 partition the natural numbers. See the guide at A296712.
|
|
LINKS
|
|
|
EXAMPLE
|
The base-12 digits of 230 are 1,7,2; here #(rises) = 1 and #(falls) = 1, so 230 is in the sequence.
|
|
MATHEMATICA
|
z = 200; b = 12; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296747 *)
Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &] (* A296748 *)
Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &] (* A296749 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|