OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..3000
EXAMPLE
a(3) = 44 is a term because A340179(44) = 211 is prime.
MAPLE
f:= proc(n) local C, s, c;
C:=select(t -> igcd(t, n) = 1, [$1..n-1]);
s:= convert(C, `+`);
add(s mod c, c = C)
end proc:
select(t -> isprime(f(t)), [$1..1000]);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Feb 04 2021
STATUS
approved