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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A156021 Numbers n such that n^1 + n^2 + n^3 + n^4 -+ 1 are twin primes. 2
1, 2, 12, 30, 44, 50, 63, 74, 110, 165, 177, 222, 239, 254, 327, 492, 519, 804, 942, 954, 1007, 1343, 1352, 1520, 1770, 2375, 2450, 2658, 2795, 2945, 2994, 3075, 3332, 3527, 3548, 3803, 3915, 3935, 4025, 4653, 4704, 4785, 4808, 4862, 5270, 5310, 5364, 5370 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

2 + 2^2 + 2^3 + 2^4 - 1 = 29; 2 + 2^2 + 2^3 + 2^4 + 1 = 31, ...

LINKS

Table of n, a(n) for n=1..48.

MATHEMATICA

lst={}; Do[p=(n^1+n^2+n^3+n^4); If[PrimeQ[p-1]&&PrimeQ[p+1], AppendTo[lst, n]], {n, 8!}]; lst

PROG

(MAGMA) [n: n in [1..6*10^3] | IsPrime(n^4+n^3+n^2+n-1) and IsPrime(n^4+n^3+n^2+n+1)]; // Vincenzo Librandi, Dec 26 2015

CROSSREFS

Cf. A125964, A156018.

Sequence in context: A215784 A061780 A249411 * A067348 A002939 A118239

Adjacent sequences:  A156018 A156019 A156020 * A156022 A156023 A156024

KEYWORD

nonn,easy

AUTHOR

Vladimir Joseph Stephan Orlovsky, Feb 01 2009

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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 19 10:45 EDT 2019. Contains 325155 sequences. (Running on oeis4.)