A176613 Smallest prime p of three consecutive primes such that the sum of their n-th powers is prime, or 0 if such a prime does not exist.
2, 5, 3, 23, 0, 11, 0, 5, 0, 23, 3, 137, 0, 5, 3, 89, 0, 71, 0, 17, 0, 23, 0, 23, 3, 131, 3, 419, 0, 31, 0, 859, 0, 31, 0, 127, 0, 11, 0, 359, 0, 31, 0, 347, 0, 509, 0, 137, 0, 193, 0, 769, 0, 23, 0, 17
Offset: 0
Keywords
Examples
5 + 7 + 11 = 23 = prime(9); 3^2 + 5^2 + 7^2 = 83 = prime(23); 23^3 + 29^3 + 31^3 = 66347 = prime(6616).
Links
- Robert Israel, Table of n, a(n) for n = 0..500
Programs
-
Maple
f:= proc(n) local p,q,r; if n::even then if isprime(3^n+5^n+7^n) then return 3 else return 0 fi fi; p:= 2: q:= 3: r:= 5: while not isprime(p^n + q^n + r^n) do p:= q; q:= r; r:= nextprime(r) od; p end proc: f(0):= 2: map(f, [$0..100]);
Extensions
a(0) term added by T. D. Noe, Nov 23 2010
Comments