OFFSET
1,2
COMMENTS
Unlike A362077 numerous primes appear in the sequence; in the first 500000 terms there are seventy-four in total. In the same range there are twelve fixed points, the last being 57. It is unknown whether more exist.
LINKS
Scott R. Shannon, Image of the first 500000 terms. The green line is a(n) = n.
EXAMPLE
PROG
(Python)
from itertools import count, islice
from sympy import primenu
def A362178_gen(): # generator of terms
a, b = {1, 2}, 2
yield from (1, 2)
while True:
for b in count(p:=primenu(b), p):
if b not in a:
yield b
a.add(b)
break
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Apr 11 2023
STATUS
approved
