login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A102563 a(n) = A000120(A001045(n)) - A001045(A000120(n)). 3

%I #8 Jul 22 2023 17:34:52

%S 0,0,0,1,1,2,2,1,3,4,4,3,5,4,4,3,7,8,8,7,9,8,8,7,11,10,10,9,11,10,10,

%T 5,15,16,16,15,17,16,16,15,19,18,18,17,19,18,18,13,23,22,22,21,23,22,

%U 22,17,25,24,24,19,25,20,20,11,31,32,32,31,33,32,32,31,35,34,34,33,35,34

%N a(n) = A000120(A001045(n)) - A001045(A000120(n)).

%H Amiram Eldar, <a href="/A102563/b102563.txt">Table of n, a(n) for n = 0..10000</a>

%F It would appear that a(2^(n+1)) = A000225(n).

%F a(2^(n+1)-1) = A001045(n).

%F a(2^(n+1)+1) = A000079(n).

%F a(2n+1) = n; a(4n+1) - a(2n+1) = n; a(8n+1) - a(4n+1) = 2n; a(8n+1) - a(2n+1) = 3n.

%t j[n_] := (2^n - (-1)^n)/3; s[n_] := DigitCount[n, 2, 1]; a[n_] := s[j[n]] - j[s[n]]; Array[a, 100, 0] (* _Amiram Eldar_, Jul 22 2023 *)

%Y Cf. A000079, A000120, A000225, A001045, A102564, 102565.

%K easy,nonn,base

%O 0,6

%A _Paul Barry_, Jan 14 2005

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 14 21:59 EDT 2024. Contains 375167 sequences. (Running on oeis4.)