OFFSET
1,3
COMMENTS
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..20000
Rémy Sigrist, Scatterplot of the first million terms
Rémy Sigrist, Scatterplot of the first five million terms
N. J. A. Sloane, Table of n, a(n) for n = 1..500000
Chai Wah Wu, Scatterplot of the first 100 million terms
PROG
(Python)
from itertools import islice
from collections import Counter
def A348446(): # generator of terms. Greedy algorithm
a = 1
c, b = Counter(), 1
while True:
k, kb = 1, b
while c[kb] >= kb:
k += 1
kb += b
c[kb] += 1
b = k
a2 = k
yield a-a2
k, kb = 1, b
while c[kb] >= kb:
k += 1
kb += b
c[kb] += 1
b = k
a = k
CROSSREFS
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Oct 22 2021
STATUS
approved