A240767 Numbers n such that n^k + (n-1)^k + ... + 3^k + 2^k is prime for some natural number k.
2, 3, 4, 7, 8, 11, 12, 16
Offset: 1
Examples
2^k is prime for at least one k (and only one k in this instance; k = 1). Thus, 2 is a member of this sequence. 3^k+2^k is prime for at least one k (see A082101). Thus, 3 is a member of this sequence.
Programs
-
PARI
a(n)=for(k=1,4000,if(ispseudoprime(sum(i=2,n,i^k)),return(k))) n=1; while(n<200,if(a(n),print(a(n)));n+=1)
Comments