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!)
A135529 Guy Steele's sequence GS(4,5) (see A135416). 11
1, 2, 2, 3, 4, 3, 4, 4, 6, 5, 8, 4, 6, 5, 8, 5, 8, 7, 12, 6, 10, 9, 16, 5, 8, 7, 12, 6, 10, 9, 16, 6, 10, 9, 16, 8, 14, 13, 24, 7, 12, 11, 20, 10, 18, 17, 32, 6, 10, 9, 16, 8, 14, 13, 24, 7, 12, 11, 20, 10, 18, 17, 32, 7, 12, 11, 20, 10, 18, 17, 32, 9, 16, 15, 28, 14, 26, 25, 48, 8, 14, 13, 24 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A135533(n) + 1 - 2^(A000120(n)-1). - Don Knuth, Mar 01 2008
MAPLE
GS(4, 5, 200); # [see A135416].
MATHEMATICA
i = 4; j = 5; Clear[a]; a[1] = 1; a[n_?EvenQ] := a[n] = {0, 1, a[n/2], a[n/2]+1, 2*a[n/2], 2*a[n/2]+1}[[i]]; a[n_?OddQ] := a[n] = {0, 1, a[(n-1)/2], a[(n-1)/2]+1, 2*a[(n-1)/2], 2*a[(n-1)/2]+1}[[j]]; Array[a, 83] (* Jean-François Alcover, Sep 12 2013 *)
CROSSREFS
Cf. A135416.
Sequence in context: A127432 A199408 A285325 * A061282 A244040 A338913
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, based on a message from Guy Steele and Don Knuth, Mar 01 2008
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 April 24 07:15 EDT 2024. Contains 371920 sequences. (Running on oeis4.)