OFFSET
1,2
COMMENTS
For all positive integers n, n appears n times.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..25000
Rémy Sigrist, Scatterplot of the first 10000000 terms
Rémy Sigrist, PARI program for A307730
N. J. A. Sloane, Table of n, a(n) for n = 1..999999
EXAMPLE
PROG
(PARI) See Links section.
(Python)
from itertools import islice
from collections import Counter
def A307730(): # generator of terms. Greedy algorithm
c, b = Counter(), 1
while True:
k, kb = 1, b
while c[kb] >= kb:
k += 1
kb += b
c[kb] += 1
b = k
yield kb
CROSSREFS
KEYWORD
nonn,hear
AUTHOR
Rémy Sigrist, Apr 25 2019
STATUS
approved