A297285 Numbers whose base-15 digits have greater down-variation than up-variation; see Comments.
15, 30, 31, 45, 46, 47, 60, 61, 62, 63, 75, 76, 77, 78, 79, 90, 91, 92, 93, 94, 95, 105, 106, 107, 108, 109, 110, 111, 120, 121, 122, 123, 124, 125, 126, 127, 135, 136, 137, 138, 139, 140, 141, 142, 143, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 165
Offset: 1
Examples
165 in base-15: 11,0 having DV = 11, UV = 0, so that 165 is in the sequence.
Links
- Clark Kimberling, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
g[n_, b_] := Map[Total, GatherBy[Differences[IntegerDigits[n, b]], Sign]]; x[n_, b_] := Select[g[n, b], # < 0 &]; y[n_, b_] := Select[g[n, b], # > 0 &]; b = 15; z = 2000; p = Table[x[n, b], {n, 1, z}]; q = Table[y[n, b], {n, 1, z}]; w = Sign[Flatten[p /. {} -> {0}] + Flatten[q /. {} -> {0}]]; Take[Flatten[Position[w, -1]], 120] (* A297285 *) Take[Flatten[Position[w, 0]], 120] (* A297286 *) Take[Flatten[Position[w, 1]], 120] (* A297287 *)
Comments