OFFSET
1,2
COMMENTS
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
a(n) = Sum_{ k>= 1, k == n (mod 2^k) } 2^(k-1). - N. J. A. Sloane and David Applegate, Mar 22 2005
a(n) = A103528(n) + 2^(n-1).
PROG
(PARI) a(n) = 2^(n-1) + sum(k = 1, n-1, if ((n % 2^k) == k, 2^(k-1))); \\ Michel Marcus, May 06 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Philippe Deléham, Mar 26 2005
EXTENSIONS
a(27) corrected and more terms from Michel Marcus, May 06 2020
STATUS
approved