OFFSET
1,1
COMMENTS
Corresponding primes are in A171771. Negative values of primes are obtained for 1 and 2.
EXAMPLE
4^6-(4+1)^5 = 971 is prime, so 4 is in the sequence.
5^6-(5+1)^5 = 7849 = 47*167 is composite, so 5 is not in the sequence.
9^6-(9+1)^5 = 431441 is prime, so 9 is in the sequence.
MATHEMATICA
Select[Range[3, 500], PrimeQ[#^6-(#+1)^5]&] (* Harvey P. Dale, Apr 25 2011 *)
PROG
(Magma) [ n: n in [1..460] | IsPrime(p) and p gt 0 where p is n^6-(n+1)^5 ];
(PARI) is(n)=isprime(n^6-(n+1)^5) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ulrich Krug (leuchtfeuer37(AT)gmx.de), Jan 29 2010
EXTENSIONS
Edited, extended, non-specific references removed and MAGMA program added by Associate Editors OEIS, Mar 05 2010
STATUS
approved