OFFSET
1,2
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 = 1..10000
EXAMPLE
a(23) is 69 since 69 is written in binary as 1000101, 69/(1+0+0+0+1+0+1)=23 and there is no smaller possibility (neither 23 nor 46 are divisible by their number of binary 1's).
MATHEMATICA
Table[SelectFirst[Range[2^12], # == n First@ DigitCount[#, 2] &] /. k_ /; MissingQ@ k -> 0, {n, 80}] (* Michael De Vlieger, May 05 2016, Version 10.2 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Henry Bottomley, Nov 26 2001
STATUS
approved