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

A228034 Primes of the form 9^n + 2.

Original entry on oeis.org

3, 11, 83, 6563, 59051, 4782971, 282429536483, 2541865828331, 150094635296999123, 57264168970223481226273458862846808078011946891, 30432527221704537086371993251530170531786747066637051
Offset: 1

Views

Author

Vincenzo Librandi, Aug 11 2013

Keywords

Crossrefs

Cf. A004051 (primes of the form 2^a+3^b), A057735 (primes of the form 3^n+2), A090649 (associated n), A104070 (primes of the form 2^n+9), A159352 (primes of the form 10^n+3), A176495 (primes of the form 27^n+2), A182330 (primes of the form 5^n+2).

Programs

  • Magma
    [a: n in [0..300] | IsPrime(a) where a is 9^n+2];
  • Mathematica
    Select[Table[9^n + 2, {n, 0, 300}], PrimeQ]

A138051 Numbers k such that 27^k + 2 is prime.

Original entry on oeis.org

0, 1, 5, 8, 12, 21, 41, 42, 81, 105, 121, 377, 501, 2401, 14597, 35381, 59476, 120536
Offset: 1

Views

Author

Alexander Adamchuk, Mar 02 2008

Keywords

Comments

All terms are the exact thirds of terms of A051783 that are divisible by 3.

Crossrefs

Cf. A051783 (3^k + 2 is prime), A087885 (5^k + 2 is prime).
Cf. A176495.

Programs

  • Mathematica
    Do[ f = 27^n + 2; If[ PrimeQ[ f ], Print[ {n, f} ] ], {n, 1, 2500} ]
  • PARI
    is(n)=ispseudoprime(27^n+2) \\ Charles R Greathouse IV, Feb 17 2017

Extensions

a(15)-a(17) from A051783 by Ray Chandler, Aug 06 2011
a(18) from Robert Price, May 12 2019
Showing 1-2 of 2 results.