login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A172192 Numbers n such that n^6-(n+1)^5 is prime. 0

%I #13 Sep 08 2022 08:45:50

%S 4,9,10,12,14,19,29,46,57,59,66,71,72,84,85,90,95,96,97,114,119,122,

%T 155,157,190,191,204,207,212,221,222,244,251,256,276,285,286,289,294,

%U 300,301,307,319,320,337,344,355,359,380,382,392,400,411,422,426,441,451

%N Numbers n such that n^6-(n+1)^5 is prime.

%C Corresponding primes are in A171771. Negative values of primes are obtained for 1 and 2.

%e 4^6-(4+1)^5 = 971 is prime, so 4 is in the sequence.

%e 5^6-(5+1)^5 = 7849 = 47*167 is composite, so 5 is not in the sequence.

%e 9^6-(9+1)^5 = 431441 is prime, so 9 is in the sequence.

%t Select[Range[3,500],PrimeQ[#^6-(#+1)^5]&] (* _Harvey P. Dale_, Apr 25 2011 *)

%o (Magma) [ n: n in [1..460] | IsPrime(p) and p gt 0 where p is n^6-(n+1)^5 ];

%o (PARI) is(n)=isprime(n^6-(n+1)^5) \\ _Charles R Greathouse IV_, Jun 13 2017

%Y Cf. A171771, A002327 (primes of form n^2-n-1), A140719 (primes of form n^3-(n+1)^2), A087191 (primes of form n^4-(n+1)^3).

%K nonn,easy

%O 1,1

%A Ulrich Krug (leuchtfeuer37(AT)gmx.de), Jan 29 2010

%E Edited, extended, non-specific references removed and MAGMA program added by Associate Editors OEIS, Mar 05 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 06:45 EDT 2024. Contains 371906 sequences. (Running on oeis4.)