OFFSET
1,3
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
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
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 24 2013
STATUS
approved