The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A243301 Numbers k such that k^7 - k^6 - k^5 - k^4 - k^3 - k^2 - k - 1 is prime. 0
30, 38, 66, 110, 144, 156, 164, 174, 194, 210, 222, 230, 266, 278, 282, 318, 354, 374, 392, 432, 474, 528, 540, 552, 588, 630, 636, 650, 704, 714, 716, 812, 918, 960, 1076, 1086, 1122, 1142, 1190, 1224, 1322, 1362, 1388, 1394, 1418, 1452, 1506, 1508, 1532, 1538, 1596 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Every term is even.
LINKS
EXAMPLE
30^7 - 30^6 - 30^5 - 30^4 - 30^3 - 30^2 - 30 - 1 = 21115862069 is prime. Thus 30 is a member of this sequence.
MATHEMATICA
Select[Range[1600], PrimeQ[#^7-Total[#^Range[0, 6]]]&] (* Harvey P. Dale, Jul 04 2021 *)
PROG
(Python)
import sympy
from sympy import isprime
{print(n, end=', ') for n in range(10**3) if isprime(n**7-n**6-n**5-n**4-n**3-n**2-n-1)}
(PARI) for(n=1, 10^3, if(ispseudoprime(n^7-sum(i=0, 6, n^i)), print1(n, ", ")))
CROSSREFS
Sequence in context: A298366 A130038 A325449 * A001995 A004433 A223727
KEYWORD
nonn
AUTHOR
Derek Orr, Jun 03 2014
STATUS
approved

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 May 13 09:49 EDT 2024. Contains 372504 sequences. (Running on oeis4.)