OFFSET
0,3
COMMENTS
a(n) is bounded above by n*A272756(n), so a program only has to check values up to that point to see if a(n) is zero. - Peter Kagey, May 05 2016
LINKS
Peter Kagey, Table of n, a(n) for n = 0..10000
EXAMPLE
a(23)=115 since 115 is written in binary as 1110011 and 115/(1+1+1+0+0+1+1)=23 and there is no higher possibility (if k is more than 127 then k divided by its number of binary 1's is more than 26).
MATHEMATICA
Table[SelectFirst[Reverse@ Range@ #, First@ DigitCount[#, 2] == #/n &] &[n SelectFirst[Range[2^12], # > IntegerLength[n #, 2] &]], {n, 80}] /. k_ /; MissingQ@ k -> 0 (* Michael De Vlieger, May 05 2016, Version 10.2 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Henry Bottomley, Nov 26 2001
STATUS
approved