OFFSET
1,3
COMMENTS
The geometric mean of the sequence equals Khintchine's constant K=2.685452001 = A002210 since the frequency of the integers agrees with the Gauss-Kuzmin distribution. When considered as a continued fraction, the resulting constant is 0.5815803358828329856145... = A372869 = [0;1,1,2,1,1,3,2,1,1,1,4,2,1,...].
This can also be defined as the sequence formed by sequentially sampling the Gauss-Kuzmin distribution. - Jwalin Bhatt, Nov 28 2024
PROG
(Python)
import math
def sample_gauss_kuzmin_distribution(num_coeffs):
coeffs, counts = [], [0]
for _ in range(num_coeffs):
min_time = math.inf
for i, count in enumerate(counts, start=1):
time = (count+1) / -math.log2(1-(1/((i+1)**2)))
if time < min_time:
min_index, min_time = i, time
if min_index == len(counts):
counts.append(0)
counts[min_index-1] += 1
coeffs.append(min_index)
return coeffs
A084580 = sample_gauss_kuzmin_distribution(100) # Jwalin Bhatt, Dec 22 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, May 31 2003
STATUS
approved