OFFSET
1,1
FORMULA
MAPLE
A070939 := proc(n) max(1, 1+floor(ilog2(n))) ; end: A080791 := proc(n) local dgs ; dgs := convert(n, base, 2) ; nops(dgs)-add(i, i=dgs) ; end: isA143909 := proc(n) zs := A080791(n) ; if zs > 0 then if A070939(n) mod zs = 0 then true ; else false ; fi; else false ; fi; end: for n from 1 to 500 do if isA143909(n) then printf("%d, ", n) ; fi; od: # R. J. Mathar, Sep 05 2008
MATHEMATICA
Select[Range[200], DigitCount[ #, 2, 0] > 0 && Mod[Length[IntegerDigits[ #, 2]], DigitCount[ #, 2, 0]] == 0 &] (* Stefan Steinerberger, Sep 05 2008 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Sep 04 2008
EXTENSIONS
More terms from Stefan Steinerberger and R. J. Mathar, Sep 05 2008
STATUS
approved