OFFSET
1,2
COMMENTS
The asymptotic probability for large n is 2/7 since the average roll of a die is 7/2.
Only terms with probability < 2/7 occur. - Michael S. Branicky, Apr 01 2025
Of any six consecutive integers, at least one is present and gives a maximum in the sequence (i.e., all terms preceding it are smaller). - Javier Múgica, May 01 2025
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
The probability of achieving a '6' in n>=6 rolls is 1/6 + 5/36 + 10/216 + 10/1296 + 5/7776 + 1/46656 which is about 36.02%.
The probability of achieving a '1' is just 1/6 (about 16.67%). 1 is the lowest of all, so a(1)=1.
PROG
(Python)
from fractions import Fraction
from math import factorial, prod
from itertools import count, islice
from sympy.utilities.iterables import partitions
def prob(n): return sum(factorial(N:=sum(p.values()))//prod(factorial(v) for v in p.values())*Fraction(1, 6**N) for p in partitions(n, k=6))
def agen(): # generator of terms
n, vdict = 1, dict()
for k in count(1):
vdict[prob(k)] = k
if k%6 == 0:
s = [vdict[v] for v in sorted(vdict) if v < Fraction(2, 7)]
yield from (s[i-1] for i in range(n, len(s)-1))
n = len(s) - 1
print(list(islice(agen(), 20))) # Michael S. Branicky, Apr 01 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Sergio Pimentel, Mar 31 2025
STATUS
approved
