OFFSET
1,1
COMMENTS
Such a game can be implemented, for instance, by rolling a single die per round, with A winning the round on numbers 1, 2, 3, B winning on 4, 5 and a draw on 6. To win the game it is necessary to win n rounds in a row. The draw also terminates winning streaks of A or B.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..2000
FORMULA
a(n)/A370826(n) = (3/4) * (3^n - 1) / (2^n - 1).
EXAMPLE
a(n)/A370826(n) for n=1..14: 3/2, 2, 39/14, 4, 363/62, 26/3, 3279/254, 328/17, 29523/1022, 1342/31, 11553/178, 292/3, 2391483/16382, 1195742/5461.
MATHEMATICA
Array[Numerator[3/4*(3^#-1)/(2^#-1)] &, 50] (* Paolo Xausa, Mar 11 2024 *)
PROG
(PARI) a370825(n) = numerator((3/4) * (3^n - 1) / (2^n - 1));
(Python)
from math import gcd
def A370825(n): return (a:=3**(n+1)-3>>1)//gcd(a, (1<<n+1)-2) # Chai Wah Wu, Mar 10 2024
CROSSREFS
KEYWORD
nonn,frac,easy
AUTHOR
Hugo Pfoertner, Mar 08 2024
STATUS
approved