login
A230597
Numbers n such that (the binary weight of n) = (the ternary weight of n).
1
0, 1, 10, 12, 13, 34, 36, 37, 41, 48, 49, 66, 67, 68, 96, 97, 120, 121, 131, 132, 133, 136, 144, 145, 160, 192, 193, 202, 258, 259, 260, 264, 265, 272, 273, 282, 283, 284, 288, 289, 320, 338, 340, 354, 355, 356, 360, 361, 368, 384, 385, 390, 391, 394, 418
OFFSET
1,3
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
A062756(a(n)) = A000120(a(n)).
MATHEMATICA
w[m_]:=Table[Count[IntegerDigits[n, m], 1], {n, 0, 2000}]; Position[w[2]-w[3], 0]//Flatten
PROG
(PARI) is(n)=my(v=digits(n, 3)); sum(i=1, #v, v[i]==1)==hammingweight(n) \\ Charles R Greathouse IV, Oct 24 2013
CROSSREFS
Sequence in context: A079026 A219956 A331276 * A330904 A124867 A199991
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 24 2013
STATUS
approved