Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A070972
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A070972 Length of longest run of consecutive 1's in binary expansion of 3^n (A004656). +0
1
1, 2, 1, 2, 1, 4, 2, 2, 2, 3, 3, 7, 6, 4, 5, 4, 3, 4, 4, 4, 6, 5, 5, 4, 3, 2, 10, 8, 7, 5, 4, 5, 7, 9, 8, 6, 5, 7, 11, 10, 8, 6, 6, 4, 9, 7, 6, 4, 9, 8, 6, 9, 8, 6, 5, 5, 3, 4, 7, 5, 10, 8, 7, 6, 6, 6, 6, 4, 4, 7, 7, 5, 5, 5, 5, 5, 5, 9, 8, 6, 5, 6, 5, 6, 5, 5, 4, 6, 5, 10, 8, 7, 5, 6, 6, 6, 7, 7, 6, 7, 5, 5, 5, 9 (list; graph; listen)
OFFSET

0,2

EXAMPLE

3^11 = (101011001111111011) binary, so a(11) = 7.

MATHEMATICA

f[n_Integer] := Block[{p = Flatten[ Position[ Prepend[ IntegerDigits[2*3^n, 2], 0], 0]]}, Max[Drop[p, 1] - Drop[p, -1]] - 1]; Table[ f[n], {n, 0, 103}]

CROSSREFS

Cf. A004656 and A011754.

Sequence in context: A077191 A050363 A111588 this_sequence A075997 A029196 A051493

Adjacent sequences: A070969 A070970 A070971 this_sequence A070973 A070974 A070975

KEYWORD

base,easy,nonn

AUTHOR

Frank Schwellinger (nummer_eins(AT)web.de), Jan 03 2003

EXTENSIONS

Edited by Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 04 2002

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research