cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A084046 Smallest prime p such that p + n is an n-th power, or 0 if no such number exists. I.e., smallest prime of the form k^n - n.

Original entry on oeis.org

2, 2, 5, 0, 1019, 15619, 2799359999993, 6553, 503, 16679880978191, 8293509467471861, 244140613, 8179, 152736582765019941952958691637187, 5097655355238390956017, 0, 18909044154723310956357640154206945542127
Offset: 1

Views

Author

Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), May 26 2003

Keywords

Comments

a(4n^2) = 0. Conjecture: if a(k) = 0 then k is an even square.

Examples

			a(5) = 1019 as 1019 + 5 = 1024 = 4^5.
		

Crossrefs

Cf. A084047.

Extensions

More terms from Ray Chandler, Jun 16 2003

A177832 Smallest k > 0 such that k^prime(n) + prime(n) is prime.

Original entry on oeis.org

1, 2, 2, 16, 32, 118, 14, 22, 12, 110, 232, 4, 48, 46, 78, 624, 104, 1348, 306, 30, 834, 400, 402, 2, 66, 8, 316, 618, 390, 560, 996, 1086, 774, 178, 300, 1912, 1792, 120, 614, 2024, 1854, 1258, 698, 966, 602, 2668, 3712, 294, 560, 108, 524, 3962, 2838, 870, 546
Offset: 1

Views

Author

Ulrich Krug (leuchtfeuer37(AT)gmx.de), May 14 2010

Keywords

Examples

			1^prime(1)+prime(1) = 1^2+2 = 3 is prime, hence a(1) = 1.
1^prime(2)+prime(2) = 1^3+3 = 4 is not prime, but 2^prime(2)+prime(2) = 2^3+3 = 11 is prime, hence a(2) = 2.
k^prime(4)+prime(4) is not prime for k < 16, but 16^prime(4)+prime(4) = 16^7+7 = 268435463 is prime, hence a(4) = 16.
a(18)^prime(18)+prime(18) = 1348^61+61 has 191 digits.
		

Crossrefs

Programs

  • PARI
    a177832(n) = {local(k=1, p=prime(n)); while(!isprime(k^p+p), k+=1); k}

Extensions

Edited, non-specific references and keywords base, hard removed, PARI program and terms a(21) through a(55) added by the Associate Editors of the OEIS

A177956 Smallest k > 0 such that k^prime(n) - prime(n) is prime.

Original entry on oeis.org

2, 2, 4, 60, 28, 2, 234, 2, 10, 186, 32, 8, 22, 6, 76, 330, 78, 62, 462, 88, 1416, 1440, 150, 40, 308, 144, 260, 42, 492, 2320, 132, 328, 838, 696, 736, 234, 56, 2786, 172, 382, 4872, 128, 4752, 7292, 826, 1856, 3960, 1124, 424, 612, 2052, 430, 1104, 280, 78, 286
Offset: 1

Views

Author

Ulrich Krug (leuchtfeuer37(AT)gmx.de), May 16 2010

Keywords

Examples

			1^prime(1)-prime(1) = 1^2-2 = -1 is not prime, but 2^prime(2)-prime(2) = 2^2-2 = 2 is prime, hence a(1) = 2.
k^prime(4)-prime(4) is not prime for k < 60, but 60^prime(4)-prime(4) = 60^7-7 = 2799359999993 is prime, hence a(4) = 60.
a(19)^prime(19)-prime(19) = 462^67-67 has 179 digits.
		

Crossrefs

Programs

  • PARI
    a177956(n) = {local(k=1, p=prime(n)); while(!isprime(k^p-p), k+=1); k}

Extensions

Edited, keywords base, hard removed, PARI program and terms a(21) through a(56) added by the Associate Editors of the OEIS Klaus Brockhaus, May 23 2010
Extended by D. S. McNeil, May 23 2010
Showing 1-3 of 3 results.