login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A233272 a(n) = n + 1 + number of nonleading zeros in binary representation of n (A080791). 9
1, 2, 4, 4, 7, 7, 8, 8, 12, 12, 13, 13, 15, 15, 16, 16, 21, 21, 22, 22, 24, 24, 25, 25, 28, 28, 29, 29, 31, 31, 32, 32, 38, 38, 39, 39, 41, 41, 42, 42, 45, 45, 46, 46, 48, 48, 49, 49, 53, 53, 54, 54, 56, 56, 57, 57, 60, 60, 61, 61, 63, 63, 64, 64, 71, 71, 72 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Antti Karttunen, Table of n, a(n) for n = 0..8192

Index entries for sequences related to binary expansion of n

FORMULA

a(n) = n + A080791(n) + 1.

For all n>=1, a(n) = n + A000120(A054429(n)).

PROG

(Scheme)

(define (A233272 n) (+ 1 n (A080791 n)))

;; Alternatively:

(define (A233272 n) (if (zero? n) 1 (+ n (A000120 (A054429 n)))))

CROSSREFS

Bisection: A233273 (A120511 + 1). Iterates: A233271, A216431. Cf. also A080791, A000120, A054429, A092391, A011371.

Sequence in context: A105774 A130805 A023831 * A023844 A132083 A286014

Adjacent sequences:  A233269 A233270 A233271 * A233273 A233274 A233275

KEYWORD

nonn,base

AUTHOR

Antti Karttunen, Dec 12 2013

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 28 10:02 EST 2020. Contains 331319 sequences. (Running on oeis4.)