login
A375585
Number of ASCII letter 'A' bytes that when compressed with zlib generate a new record longest compressed byte stream.
0
1, 2, 3, 4, 262, 391, 520, 777, 778, 1036, 1293, 1294, 1552, 1665, 1810, 2067, 2101, 2329, 2649, 3681, 4713, 5745, 6777, 7809, 8841, 9873, 10905, 11937, 12969, 14001, 15033, 16065, 17097, 18129, 19161, 20193, 21225, 22257, 23289, 24321, 25353, 26385, 27417, 28449, 29481
OFFSET
1,2
COMMENTS
Zlib uses the "deflate" algorithm and here with its default compression level 6 and window bits 15.
PROG
(Python)
import zlib
def g():
max_m, i=0, 1
while True:
if (m := len(zlib.compress(b"A"*i))) > max_m:
max_m = m
yield i
i+=1
from itertools import islice
print(list(islice(g(), 45)))
CROSSREFS
Cf. A234849.
Sequence in context: A114341 A244548 A004877 * A116022 A172998 A004888
KEYWORD
nonn
AUTHOR
DarĂ­o Clavijo, Aug 19 2024
STATUS
approved