login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual appeal: Please make a donation to keep the OEIS running! Over 6000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A124163 Numbers n such that 1 + n + n^3 + n^5 + n^7 + n^9 is prime. 5
2, 12, 14, 18, 48, 62, 80, 86, 116, 120, 138, 212, 230, 264, 272, 362, 368, 386, 392, 422, 440, 450, 456, 468, 480, 492, 510, 518, 528, 534, 548, 558, 620, 632, 678, 710, 744, 770, 780, 834, 884, 900, 918, 960, 1022, 1032, 1074, 1080, 1146, 1170, 1178, 1212, 1232, 1242, 1260, 1308, 1382, 1440, 1470, 1482, 1524 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

MATHEMATICA

Do[If[PrimeQ[1 + n + n^3 + n^5 + n^7 + n^9], Print[n]], {n, 1, 300}]

Select[Range[2000], PrimeQ[Total[#^Range[1, 9, 2]] + 1] &] (* Vincenzo Librandi, Jun 27 2014 *)

PROG

(MAGMA) [n: n in [0..1500]| IsPrime(1 + n + n^3 + n^5 + n^7+ n^9 )]; // Vincenzo Librandi, Nov 13 2010

(MAGMA) [n: n in [0..1200] | IsPrime(s) where s is 1+&+[n^i: i in [1..9 by 2]]]; // Vincenzo Librandi, Jun 27 2014

(PARI) is(n)=isprime(1+n+n^3+n^5+n^7+n^9) \\ Charles R Greathouse IV, Feb 20 2017

CROSSREFS

Cf. A049407, similar sequences listed in A244376.

Sequence in context: A078755 A186647 A086285 * A108976 A073598 A232768

Adjacent sequences:  A124160 A124161 A124162 * A124164 A124165 A124166

KEYWORD

nonn,easy

AUTHOR

Artur Jasinski, Dec 13 2006

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified November 17 19:40 EST 2017. Contains 294834 sequences.