OFFSET
1,1
COMMENTS
a(n) are the primes in A163078.
LINKS
Peter Luschny, Die schwingende Fakultät und Orbitalsysteme, August 2011.
Peter Luschny, Swinging Primes.
EXAMPLE
3 is prime and 3$ - 1 = 5 is prime, so 3 is in the sequence.
MAPLE
a := proc(n) select(isprime, select(k -> isprime(A056040(k)-1), [$0..n])) end:
MATHEMATICA
sf[n_] := n!/Quotient[n, 2]!^2; Select[Prime /@ Range[200], PrimeQ[sf[#] - 1] &] (* Jean-François Alcover, Jun 28 2013 *)
PROG
(PARI) is(k) = isprime(k) && ispseudoprime(k!/(k\2)!^2-1); \\ Jinyuan Wang, Mar 22 2020
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Peter Luschny, Jul 21 2009
EXTENSIONS
a(14)-a(18) from Jinyuan Wang, Mar 22 2020
STATUS
approved