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-5 of 5 results.

A155021 Values of n such that n^a-+a are primes, a=5.

Original entry on oeis.org

0, 42, 1566, 2154, 4482, 6054, 6252, 7566, 7968, 8478, 9546, 10128, 10992, 14286, 14574, 15846, 16212, 16248, 16854, 17268, 17976, 18186, 22434, 23658, 23952, 24234, 24408, 26154, 26742, 28908, 29262, 30018, 30522, 32424, 33174, 33378
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    a={};Do[m=n^5;If[PrimeQ[m-5]&&PrimeQ[m+5],AppendTo[a,n]],{n,0,9!}];a

A176684 Numbers k such that k^3 +-5 are primes.

Original entry on oeis.org

2, 12, 48, 66, 78, 126, 192, 324, 576, 738, 858, 1806, 2466, 2496, 2688, 3186, 3276, 3978, 4092, 4248, 4404, 4884, 5034, 5274, 5352, 5898, 6018, 6198, 6396, 6408, 6516, 6708, 6852, 7368, 7914, 8304, 8628, 8658, 8904, 9048, 9168, 9528, 10812, 10932
Offset: 1

Views

Author

Keywords

Examples

			12 is in the sequence, because 12^3 - 5 = 1723 and 12^3 + 5 = 1733 are primes.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[8! ],PrimeQ[ #^3-5]&&PrimeQ[ #^3+5]&]

A155022 Values of n such that n^a-+a are primes, a=7.

Original entry on oeis.org

0, 66, 516, 3450, 7200, 8850, 12480, 16500, 18234, 18534, 19440, 21246, 26466, 28596, 39036, 41634, 43500, 43710, 54186, 54876, 59316, 68886, 77184, 81540, 82134, 88044, 89064, 95796, 97530, 98610, 108294, 111864, 113160, 120534, 120696
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    a={};Do[m=n^7;If[PrimeQ[m-7]&&PrimeQ[m+7],AppendTo[a,n]],{n,0,9!}];a
    Select[Range[0,130000],And@@PrimeQ[#^7+{7,-7}]&] (* Harvey P. Dale, Aug 26 2013 *)

A176685 Numbers k such that k^3 +-7 are primes.

Original entry on oeis.org

36, 114, 174, 264, 426, 444, 810, 894, 900, 2724, 3876, 4140, 4386, 4446, 4686, 4884, 5910, 5940, 6240, 6294, 6534, 6624, 7044, 7206, 7314, 7326, 7470, 8076, 8676, 9120, 9216, 9270, 9546, 9900, 10926, 11040, 11934, 12114, 12510, 14004, 14034, 14100
Offset: 1

Views

Author

Keywords

Examples

			36 is in the sequence, because 36^3 - 7 = 46649 and 36^3 + 7 = 46663 are primes.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[8! ],PrimeQ[ #^3-7]&&PrimeQ[ #^3+7]&]
    Select[Range[15000],AllTrue[#^3+{7,-7},PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jan 28 2020 *)

A155023 Values of n such that n^a-+a are primes, a=11.

Original entry on oeis.org

0, 1770, 10182, 11700, 12090, 16548, 24192, 27570, 29142, 29148, 60648, 62790, 63120, 97110, 104502, 115140, 116718, 119682, 122130, 127728, 147210, 151848, 170292, 189318, 190452, 192738
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    a={};Do[m=n^11;If[PrimeQ[m-11]&&PrimeQ[m+11],AppendTo[a,n]],{n,0,9!}];a
    Select[Range[0,200000],And@@PrimeQ[#^11+{11,-11}]&] (* Harvey P. Dale, Jun 20 2013 *)
Showing 1-5 of 5 results.