OFFSET
1,5
COMMENTS
The frequencies of the terms follow the logarithmic distribution with parameter value 1/2.
The geometric mean approaches A381898 in the limit.
LINKS
Jwalin Bhatt, Table of n, a(n) for n = 1..10000
Wikipedia, Logarithmic distribution
EXAMPLE
After every (2*2=4) ones we see a 2,
after every (4*3=12) ones we see a 3,
after every (8*4=32) ones we see a 4 and so on.
PROG
(Python)
from itertools import islice
def logarithmic_distribution_generator():
num_ones, num_reached = 0, 1
while num_ones := num_ones+1:
yield 1
for num in range(2, num_reached+2):
if num_ones % ((2**(num-1))*(num)) == 0:
yield num
num_reached += num == num_reached+1
A381900 = list(islice(logarithmic_distribution_generator(), 120))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jwalin Bhatt, Mar 09 2025
STATUS
approved
