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!)
A243298 Numbers k such that k^9 - k^8 - k^7 - k^6 - k^5 - k^4 - k^3 - k^2 - k - 1 is prime. 1
4, 16, 18, 28, 76, 84, 88, 118, 146, 180, 258, 272, 274, 282, 316, 380, 384, 400, 462, 464, 468, 476, 548, 586, 588, 610, 616, 644, 646, 702, 708, 756, 786, 810, 826, 944, 954, 956, 988, 1000, 1016, 1052, 1104, 1138, 1166, 1178, 1194, 1212, 1226, 1240, 1258, 1356 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(n) is even for all n.
LINKS
EXAMPLE
4^9-4^8-4^7-4^6-4^5-4^4-4^3-4^2-4-1 = 174763 is prime. Thus, 4 is a member of this sequence.
PROG
(Python)
import sympy
from sympy import isprime
{print(n, end=', ') for n in range(10**4) if isprime(n**9-n**8-n**7-n**6-n**5-n**4-n**3-n**2-n-1)}
(PARI) for(n=1, 10^3, if(ispseudoprime(n^9-sum(i=0, 8, n^i)), print1(n, ", ")))
(Python)
from sympy import isprime
A243298_list, m = [], [362880, -1491840, 2464560, -2082240, 945000, -220248, 22560, -680, 1, -1]
for n in range(1, 10**5+1):
....for i in range(9):
........m[i+1]+= m[i]
....if isprime(m[-1]):
........A243298_list.append(n) # Chai Wah Wu, Nov 06 2014
CROSSREFS
Sequence in context: A166620 A363084 A224705 * A139719 A117102 A077476
KEYWORD
nonn
AUTHOR
Derek Orr, Jun 02 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 April 23 22:36 EDT 2024. Contains 371917 sequences. (Running on oeis4.)