Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A004523
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A004523 Two even followed by one odd. +0
29
0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, 11, 12, 12, 13, 14, 14, 15, 16, 16, 17, 18, 18, 19, 20, 20, 21, 22, 22, 23, 24, 24, 25, 26, 26, 27, 28, 28, 29, 30, 30, 31, 32, 32, 33, 34, 34, 35, 36, 36, 37, 38, 38, 39, 40, 40, 41, 42, 42, 43, 44, 44, 45, 46, 46, 47, 48, 48 (list; graph; listen)
OFFSET

0,4

COMMENT

Guenther Rosenbaum showed that the sequence represents the optimal number of guesses in the static Mastermind game with two pegs. Namely, the optimal number of static guesses equals 2k, if the number of colors is either (3k - 1) or 3k and is (2k + 1), if the number of colors is (3k + 1), k >= 1. - Alex Bogomolny, Mar 06, 2002

First differences are in A011655. - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Mar 19 2008

LINKS

Index entries for sequences related to linear recurrences with constant coefficients

G. Rosenbaum, More information

See also Static Mastermind Game

FORMULA

G.f.: (x^2+2*x^3+2*x^4+x^5)/(1-x^3)^2 - Len Smiley (smiley(AT)math.uaa.alaska.edu)

a(n)=Floor(2n/3)

a(0)=a(1)=0 a(n)=n-1-floor(u(n-1)/2) - Benoit Cloitre (benoit7848c(AT)orange.fr), Nov 26 2002

a(n)=a(n-1)+(1/2)((-1)^Floor[(2n+2)/3]+1), a(0)=0. - Mario Catalani (mario.catalani(AT)unito.it), Oct 20 2003

a(n)=sum{k=0..n-1, mod(Fib(k), 2)}; - Paul Barry (pbarry(AT)wit.ie), May 31 2005

a(n) = A004773(n) - A004396(n). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Aug 29 2005

O.g.f.: x^2*(1+x)/[(-1+x)^2*(1+x+x^2)] . - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Mar 19 2008

a(n)=2*(-1+Sum{k=0..n}{1/9*[ -2*(k mod 3)+((k+1) mod 3)+4*((k+2) mod 3)]}+{[(n+2) mod 3] mod 2}, with n>=0 [From Paolo P. Lava (ppl(AT)spl.at), Oct 02 2008]

MATHEMATICA

Table[ Floor[2n/3], {n, 0, 75} ]

CROSSREFS

Cf. A004396.

Zero followed by partial sums of A011655.

Sequence in context: A020915 A156301 A032509 this_sequence A038372 A121930 A020909

Adjacent sequences: A004520 A004521 A004522 this_sequence A004524 A004525 A004526

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 06 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 November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research