OFFSET
1,1
COMMENTS
The elements of A022521 are sometimes called Nexus number of order 5, see there.
The terms should have 1 subtracted, since indices of primes in A022521 are 1, 2, 5, 10, 16, 19, 24, 27, 30, 31, 34, 35, 41, 44, 46, .... - M. F. Hasler, Jan 27 2013
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
select(t -> isprime(t^5-(t-1)^5), [$1..1000]); # Robert Israel, Jul 10 2018
MATHEMATICA
Do[np5=n^5 - (n-1)^5; If[PrimeQ[np5], Print[n]], {n, 1, 100}]
Flatten[Position[Partition[Range[300]^5, 2, 1], _?(PrimeQ[#[[2]]-#[[1]]]&), 1, Heads-> False]]+1 (* Harvey P. Dale, May 30 2021 *)
PROG
(PARI) A121617(n, print_all=0)={for(k=2, 9e9, ispseudoprime(k^5-(k-1)^5) & !(print_all & print1(k", ")) & !n-- & return(k))} \\ M. F. Hasler, Feb 03 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Aug 10 2006
STATUS
approved