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!)
A090003 Length of longest contiguous block of 1's in binary expansion of n^3. 6
0, 1, 1, 2, 1, 5, 2, 3, 1, 2, 5, 2, 2, 1, 3, 4, 1, 2, 2, 2, 5, 2, 2, 5, 2, 4, 1, 3, 3, 5, 4, 5, 1, 2, 2, 4, 2, 3, 2, 4, 5, 3, 2, 2, 2, 6, 5, 4, 2, 3, 4, 2, 1, 2, 3, 4, 3, 2, 5, 2, 4, 3, 5, 6, 1, 2, 2, 2, 2, 4, 4, 3, 2, 5, 3, 8, 2, 4, 4, 4, 5, 6, 3, 3, 2, 4, 2, 3, 2, 3, 6, 8, 5, 2, 4, 5, 2, 4, 3, 3, 4, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
a(n) = A038374(A000578(n)).
LINKS
MATHEMATICA
Join[{0}, Table[Max[Length/@Select[Split[IntegerDigits[n^3, 2]], MemberQ[#, 1]&]], {n, 110}]] (* Harvey P. Dale, Aug 28 2016 *)
PROG
(PARI)
A038374(n) = { if(n<2, return(n)); n>>=valuation(n, 2); if(n<2, return(n)); my(e=valuation(n+1, 2)); max(e, A038374(n>>e)); } \\ After Charles R Greathouse IV, Jan 12 2014
A090003(n) = A038374(n^3); \\ Antti Karttunen, Jul 09 2017
CROSSREFS
Sequence in context: A260325 A136262 A162180 * A136645 A366801 A247498
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Nov 20 2003
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 19 01:22 EDT 2024. Contains 370952 sequences. (Running on oeis4.)