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!)
A135523 a(n) = A007814(n) + A209229(n). 4
1, 2, 0, 3, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 7, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Antti Karttunen, Table of n, a(n) for n = 1..65537

FORMULA

G.f.: x + Sum_{k>=1} x^(2^k)*(1 + 1/(1 - x^(2^k))). - Ilya Gutkovskiy, Mar 30 2017

a(n) = A135560(n) - 1. Antti Karttunen, Sep 27 2018

MAPLE

GS(4, 1, 200); [see A135416].

PROG

(PARI) A135523(n) = (valuation(n, 2)+(n && !bitand(n, n-1))); \\ Antti Karttunen, Sep 27 2018

CROSSREFS

Cf. A135416, A007814, A036987.

This is Guy Steele's sequence GS(4, 1) (see A135416).

One less than A135560.

Sequence in context: A219202 A341980 A218031 * A194663 A135685 A164658

Adjacent sequences:  A135520 A135521 A135522 * A135524 A135525 A135526

KEYWORD

nonn

AUTHOR

N. J. A. Sloane, based on a message from Guy Steele and Don Knuth, Mar 01 2008

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 May 10 04:16 EDT 2021. Contains 343748 sequences. (Running on oeis4.)