|
|
A044859
|
|
Positive integers having the same number of base-3 runs of odd length as even.
|
|
1
|
|
|
9, 12, 14, 17, 18, 22, 24, 25, 81, 108, 117, 120, 122, 125, 134, 161, 162, 202, 216, 229, 234, 238, 240, 241, 252, 255, 257, 260, 261, 265, 267, 268, 279, 287, 315, 319, 327, 329, 330, 331, 333, 336, 338, 341, 342, 346, 348, 349
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MAPLE
|
f:= proc(n) local L;
L:= [-1, op(convert(n, base, 3)), -1];
L:= L[1..-2]-L[2..-1];
L:= select(t -> L[t]<>0, [$1..nops(L)]);
L:= L[2..-1]-L[1..-2];
convert(L mod 2, `+`)*2 = nops(L)
end proc:
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|