OFFSET
0,6
COMMENTS
A number m is a child of n if the binary representation of n has a 1 in every position where the binary representation of m has a 1.
In other words, this tells us how closely (in Hamming weight) we can approximate n "from below" by a multiple of e.
LINKS
Nadia Heninger and N. J. A. Sloane, Table of n, a(n) for n = 0..5000
N. J. A. Sloane, Fortran program for this and related sequences
EXAMPLE
If n = 14 = 1110_2, take k=2, ke = 6 = 110_2, which is Hamming distance 1 from n. This is the best we can do, so a(14) = 1.
PROG
(Fortran) See Sloane link.
CROSSREFS
KEYWORD
nonn
AUTHOR
Nadia Heninger and N. J. A. Sloane, Jun 03 2008
STATUS
approved