OFFSET
1,3
COMMENTS
This sequence is a variant of A332518 without the requirement that all factors have to be consecutive numbers.
LINKS
S. Brunner, Table of n, a(n) for n = 1..10000
S. Brunner, Python program.
EXAMPLE
To get a(n+1), count how many times a(n) appears in the sequence.
For 1 and primes, this is already a(n+1).
For prime squares, also count how many times the prime factor appears in the sequence, divide it by 2 and round it down.
For example, the next term after a(43) = 9 is 3, because 9 appeared 1 time (at a(43) itself) and 3 appeared 5 times, which can arranged in 2 groups of 3 X 3.
For semiprimes, count how many times the semiprime itself appears in the sequence. Then count how many times the 2 factors appear and add the smallest number.
For example, the next term after a(30) = 6 is 8, because 6 appeared 4 times and the factors 2 and 3 appeared 6 and 4 times. We can build 4 groups of 2 X 3 of them.
CROSSREFS
KEYWORD
nonn
AUTHOR
S. Brunner, Nov 07 2020
STATUS
approved