cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A370826 a(n) are the denominators corresponding to A370825(n).

Original entry on oeis.org

2, 1, 14, 1, 62, 3, 254, 17, 1022, 31, 178, 3, 16382, 5461, 65534, 257, 262142, 657, 1048574, 1271, 4194302, 60787, 356962, 12291, 67108862, 22369621, 268435454, 617093, 1073741822, 149943, 4294967294, 16843009, 746950834, 5726623061, 967879954, 981, 274877906942
Offset: 1

Views

Author

Hugo Pfoertner, Mar 08 2024

Keywords

Comments

See A370825 for more information.

Examples

			A370825(n)/a(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.
		

Crossrefs

A370825 are the corresponding numerators.

Programs

  • Mathematica
    Array[Denominator[3/4*(3^#-1)/(2^#-1)] &, 50] (* Paolo Xausa, Mar 11 2024 *)
  • PARI
    a370826(n) = denominator((3/4) * (3^n - 1) / (2^n - 1));
    
  • Python
    from math import gcd
    def A370826(n): return (a:=(1<>1) # Chai Wah Wu, Mar 10 2024

Formula

A370825(n)/a(n) = (3/4) * (3^n - 1) / (2^n - 1).

A370827 a(n) is the numerator of the ratio of winning probabilities P_A/P_B of winning in a 2-player game with a ratio of odds for A and B in a single round of 3:2. To win the game it is necessary to win n rounds in a row.

Original entry on oeis.org

3, 63, 1053, 16443, 250533, 28431, 56859813, 853737003, 12811093893, 17472421953, 2883131020773, 25013333547, 648727335888453, 9730949220408843, 145964473398624933, 128792265384372219, 32842036136344638213, 3703989419737954191, 7389459197057088616293, 10076535434903231752353
Offset: 1

Views

Author

Hugo Pfoertner, Mar 09 2024

Keywords

Comments

If you play the game with odds of 3:2 with one dice, you can decide what happens to the unused number. In the present sequence, this number is ignored without effect. However, if one defines the occurrence of the 6th number as a draw, which interrupts consecutive wins by both players, then the sequence pair A370825/A370826 results. The addition of a draw increases the odds ratio in favor of the player who has the higher chance of winning a single round. The relative advantage is small with 2 games to be won, i.e., 2/(63/32)-1 = 1/63, with 3 rounds 1/27, with 4 rounds 965/16443, but increases with a higher number of consecutive rounds to be won, and reaches asymptotically 1/8.

Examples

			a(n)/A370828(n) for n = 1..8: 3/2, 63/32, 1053/392, 16443/4352, 250533/46112, 28431/3584, 56859813/4860032, 853737003/49160192.
		

Crossrefs

A370828 are the corresponding denominators.

Programs

  • PARI
    a370827(n) = numerator((2/3) * (3/5)^n * ((5/2)^n - 1) / (1 - (3/5)^n))
    
  • Python
    from math import gcd
    def A370827(n): return (a:=3**(n-1)*(5**n-(1<Chai Wah Wu, Mar 12 2024

Formula

a(n)/A370828(n) = (2/3) * (3/5)^n * ((5/2)^n - 1) / (1 - (3/5)^n).
Showing 1-2 of 2 results.