OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000
PROG
(Python)
from itertools import count, chain, islice
from sympy.ntheory import sqrt_mod_iter
def A357099_gen(): # generator of terms
return chain.from_iterable((sorted(filter(lambda m:1<m<n-1, sqrt_mod_iter(1, n)))[1:2] for n in count(2)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Oct 25 2022
STATUS
approved