OFFSET
3,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 3..10000
FORMULA
a(n) = 1 <=> n in { A008864 }.
MAPLE
a:= n-> n&^(-1) mod prevprime(n):
seq(a(n), n=3..100);
PROG
(Python)
from sympy import prevprime
def A362254(n): return pow(n, -1, prevprime(n)) # Chai Wah Wu, Apr 13 2023
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Alois P. Heinz, Apr 13 2023
STATUS
approved