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!)
A235590 Sum of parts of the form 10...0 with nonnegative number of zeros in binary representation of c-squarefree numbers (A233564) as the corresponding powers of 2. 0
1, 2, 4, 3, 3, 8, 5, 5, 16, 9, 6, 6, 9, 32, 17, 10, 7, 7, 10, 7, 7, 17, 7, 7, 64, 33, 18, 12, 11, 11, 12, 18, 11, 11, 33, 11, 11, 128, 65, 34, 20, 19, 19, 13, 13, 20, 13, 13, 34, 19, 19, 65, 19, 13, 13, 19, 256, 129, 66, 36, 35 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Subsequence of A162439.
The number of times of appearances of number k in the sequence is the number of compositions of k into distinct powers of 2, i.e., it is A000120(k)!
LINKS
FORMULA
Let, for k_1>k_2>...>k_r, A233564(n) = 2^k_1 + 2^k_2 +...+ 2^k_r. Then a(n) = 2^(k_1-k_2-1) + 2^(k_2-k_3-1) + 2^(k_(r-1)-k_r-1) + 2^k_r.
EXAMPLE
Let n=17, A233564(17)=37. In binary a concatenation of parts of the form 10...0 which gives 37 is (100)(10)(1). Thus a(17)= 4+2+1 = 7.
MATHEMATICA
bitPatt[n_]:=bitPatt[n]=Split[IntegerDigits[n, 2], #2==0&]; Map[Plus@@(Map[FromDigits[#, 2]&, bitPatt[#]])&, Select[Range[300], #==DeleteDuplicates[#]&[bitPatt[#]]&]] (* Peter J. C. Moses, Jan 15 2014 *)
CROSSREFS
Sequence in context: A330256 A227418 A278447 * A069655 A353706 A004574
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev, Jan 12 2014
STATUS
approved

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 March 29 04:23 EDT 2024. Contains 371264 sequences. (Running on oeis4.)