OFFSET
1,2
LINKS
EXAMPLE
Let n=23. By the definition of c-divisor (see comment in A124771), 23 has the following c-divisors: 0, 1, 2, 3, 5, 7, 11, 23. So a(23)=52.
MATHEMATICA
bitPatt[n_]:=bitPatt[n]=Split[IntegerDigits[n, 2], #1>#2||#2==0&]; cDivisors[0]:={0}; cDivisors[n_]:=Insert[Insert[Map[#[[1]]&, Select[Table[{z, Cases[{bitPatt[n]}, Apply[{___, ##, ___}&, bitPatt[z]]]}, {z, n/2}], #[[2]]=!={}&]], 0, 1], n, -1]; Map[Apply[Plus, cDivisors[#]]&, Range[50]] (* Peter J. C. Moses, Dec 08 2013 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev, Dec 08 2013
EXTENSIONS
More terms from Peter J. C. Moses, Dec 08 2013
STATUS
approved