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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A135523 a(n) = A007814(n) + A209229(n). 4

%I

%S 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,

%T 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,

%U 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

%N a(n) = A007814(n) + A209229(n).

%H Antti Karttunen, <a href="/A135523/b135523.txt">Table of n, a(n) for n = 1..65537</a>

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

%F a(n) = A135560(n) - 1. _Antti Karttunen_, Sep 27 2018

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

%o (PARI) A135523(n) = (valuation(n,2)+(n && !bitand(n,n-1))); \\ _Antti Karttunen_, Sep 27 2018

%Y Cf. A135416, A007814, A036987.

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

%Y One less than A135560.

%K nonn

%O 1,2

%A _N. J. A. Sloane_, based on a message from Guy Steele and _Don Knuth_, Mar 01 2008

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.

Last modified June 12 09:24 EDT 2021. Contains 344946 sequences. (Running on oeis4.)