login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A107605
Numbers n such that prime(n) + n is a perfect power.
4
3, 5, 8, 9, 12, 86, 105, 147, 176, 214, 230, 241, 355, 412, 503, 696, 1065, 1147, 1170, 1273, 1334, 2021, 2455, 2600, 2660, 2772, 3299, 3332, 3365, 4417, 4861, 6288, 6478, 6572, 8115, 8858, 8905, 9229, 9380, 9590, 9692, 9749, 10501, 10829, 11338, 11633
OFFSET
1,1
EXAMPLE
Prime(8) + 8 = 19 + 8 = 27 = 3^3.
MATHEMATICA
f[n_] := Prime[n] + n; Select[Range[10^4], ! GCD @@ Last /@ FactorInteger[f[ # ]] == 1 &] (* Ray Chandler, May 21 2005 *)
PROG
(Sage) [n for n in (1..10000) if (n+nth_prime(n)).is_perfect_power()] # Giuseppe Coppoletta, Jun 08 2016
CROSSREFS
Cf. A001597 (perfect powers), A107606 (associated prime(n)+n), A107607, A107608, A109314.
Sequence in context: A107792 A051206 A081451 * A109314 A319828 A325540
KEYWORD
nonn
AUTHOR
Zak Seidov, May 17 2005
EXTENSIONS
Extended by Ray Chandler, May 21 2005
STATUS
approved