|
Search: id:A004523
|
|
|
| A004523 |
|
Two even followed by one odd. |
|
+0 24
|
|
| 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
|
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)lhsystems.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
|
|
MATHEMATICA
|
Table[ Floor[2n/3], {n, 0, 75} ]
|
|
CROSSREFS
|
Cf. A004396.
Zero followed by partial sums of A011655.
Sequence in context: A029922 A020915 A032509 this_sequence A038372 A121930 A020909
Adjacent sequences: A004520 A004521 A004522 this_sequence A004524 A004525 A004526
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
njas
|
|
EXTENSIONS
|
More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 06 2002
|
|
|
Search completed in 0.002 seconds
|