login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A121496 Run lengths of successive numbers in A068225. 0
1, 2, 2, 1, 3, 4, 4, 3, 5, 6, 6, 5, 7, 8, 8, 7, 9, 10, 10, 9, 11, 12, 12, 11, 13, 14, 14, 13, 15, 16, 16, 15, 17, 18, 18, 17, 19, 20, 20, 19, 21, 22, 22, 21, 23, 24, 24, 23, 25, 26, 26, 25, 27, 28, 28, 27, 29, 30, 30, 29, 31, 32, 32, 31, 33, 34, 34, 33, 35, 36, 36, 35, 37, 38, 38 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

A000027 and A103889 are bisections.

FORMULA

a(2k-1) = k, a(4k) = 2k-1, a(4k-2) = 2k, k>=1.

EXAMPLE

The fifth run of successive numbers in A068225 is 8, 9, 10 with run length three so a(5) = 3.

PROG

(PARI) a(n) = if(n%2==1, (n+1)/2, if(n%4==0, (n/2)-1, (n/2)+1)) for(n=1, 80, print1(a(n), ", "))

CROSSREFS

Cf. A068225, A000027, A103889.

Sequence in context: A123956 A113594 A102563 * A091971 A065185 A111375

Adjacent sequences:  A121493 A121494 A121495 * A121497 A121498 A121499

KEYWORD

nonn

AUTHOR

Rick L. Shepherd (rshepherd2(AT)hotmail.com), Aug 03 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 13 14:31 EST 2012. Contains 205511 sequences.