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.

A124185 Numbers n such that 1 + n + n^3 + n^5 + n^7 + n^9 + n^11 + n^13 + n^15 + n^17 + n^19 + n^21 + n^23 + n^25 + n^27 is prime.

Original entry on oeis.org

182, 219, 393, 468, 629, 638, 755, 824, 960, 965, 984, 1002, 1053, 1068, 1095, 1110, 1140, 1209, 1233, 1269, 1457, 1518, 1539, 1547, 1590, 1622, 1659, 1707, 1797, 1818, 2174, 2259, 2333, 2799, 2975, 3032, 3074, 3272, 3285, 3338, 3368, 3477, 3564, 4118
Offset: 1

Views

Author

Artur Jasinski, Dec 13 2006

Keywords

Crossrefs

Cf. A049407, similar sequences listed in A244376.

Programs

  • Magma
    [n: n in [0..5000] | IsPrime(s) where s is 1+&+[n^i: i in [1..27 by 2]]]; // Vincenzo Librandi, Jun 28 2014
    
  • Mathematica
    Do[If[PrimeQ[1 + n + n^3 + n^5 + n^7 + n^9 + n^11 + n^13 + n^15 + n^17 + n^19 + n^21 + n^23 + n^25 + n^27], Print[n]], {n, 1, 1400}]
    Select[Range[5000], PrimeQ[Total[#^Range[1, 27, 2]] + 1] &] (* Vincenzo Librandi, Jun 28 2014 *)
  • PARI
    is(n)=isprime(1+n+n^3+n^5+n^7+n^9+n^11+n^13+n^15+n^17+n^19+n^21+n^23+n^25+n^27) \\ Charles R Greathouse IV, Feb 20 2017