OFFSET
0,2
REFERENCES
Hardy and Wright, Sect. 18.2, for definition of average order.
LINKS
David Applegate, Benoit Cloitre, Philippe Deléham, and N. J. A. Sloane, Sloping binary numbers: a new sequence related to the binary numbers [pdf, ps].
David Applegate, Benoit Cloitre, Philippe Deléham, and N. J. A. Sloane, Sloping binary numbers: a new sequence related to the binary numbers, J. Integer Seq. 8 (2005), no. 3, Article 05.3.6, 15 pp.
FORMULA
The average order of A102370(n) is n + O(log n).
MATHEMATICA
Accumulate[f[n_] := Block[{k = 1, s = 0, l = Max[2, Floor[Log[2, n + 1] + 2]]}, While[k < l, If[ Mod[n + k, 2^k] == 0, s = s + 2^k]; k++ ]; s]; Table[ f[n] + n, {n, 0, 53}] ] (* James C. McMahon, Jan 21 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane and David Applegate, Apr 01 2005
STATUS
approved