OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
40 is 111 (3 ones) in base 3 and 101000 (2 ones) in base 2, therefore it is in the sequence.
MATHEMATICA
Select[Table[n, {n, 1, 1000}], Max[Table[Count[IntegerDigits[#, b], 1], {b, 2, # + 1}]] != Count[IntegerDigits[#, 2], 1] &]
PROG
(PARI) ones(n, b)=my(s); while(n, if(n%b==1, s++); n\=b); s
is(n)=if(n<4, return(0)); my(m=hammingweight(n), b=2); while(b++^(m-1)<n, if(ones(n, b)>m, return(1))); 0 \\ Charles R Greathouse IV, Mar 19 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Benedikt Otten, Mar 17 2013
STATUS
approved