OFFSET
1,1
COMMENTS
All values are prime powers, and every prime power except 2 appears in the sequence. This can be proved using the Chinese remainder theorem.
PROG
(PARI) a(n) = my(k=2); while (issquare(Mod(-n, k)), k++); k; \\ Michel Marcus, Jul 08 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Bruno Langlois, Jul 08 2022
STATUS
approved