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

A363024 Primes of the form 3^(k-1) - 2^k.

Original entry on oeis.org

11, 179, 601, 1931, 10456158899, 617669101316651, 984770866999239144049, 2153693958571958138940251, 1570042898793851235488822819, 14130386090585813000157964091, 11972515182561981102976512358583456508049, 19088056323407826758511836230558252318494847619
Offset: 1

Views

Author

Sébastien Tao, May 13 2023

Keywords

Comments

a(23) has 1117 digits. - Michael S. Branicky, May 26 2023

Examples

			a(1) = 3^3 - 2^4 = 27 - 16 = 11 (prime).
a(2) = 3^5 - 2^6 = 243 - 64 = 179 (prime).
		

Crossrefs

Prime terms in A003063.
Cf. A162714, A363375, A162715 (subsequence).

Programs

  • Mathematica
    Select[Table[3^(k - 1) - 2^k, {k, 1 , 100}], PrimeQ]

A162715 Primes of the form 3^p-2^(p+1), where p is also a prime.

Original entry on oeis.org

11, 179, 1931, 617669101316651, 14130386090585813000157964091, 19088056323407826758511836230558252318494847619
Offset: 1

Views

Author

Vincenzo Librandi, Jul 11 2009

Keywords

Comments

The next term has 1117 digits and is not included explicitly for that reason.

Crossrefs

Cf. A162714.

Programs

  • Magma
    [a: p in PrimesInInterval(3,1200) | IsPrime(a) where a is 3^p - 2^(p + 1)]; // Vincenzo Librandi, Sep 11 2013
  • Mathematica
    Select[Table[3^p - 2^(p + 1), {p, Prime[Range[70]]}], PrimeQ] (* Vincenzo Librandi, Sep 11 2013 *)

Formula

a(n) = 3^A162714(n)-2^(1+A162714(n)) .

Extensions

Clarified status of p in the definition - R. J. Mathar, Oct 16 2009

A363375 Numbers k such that 3^(k-1) - 2^k is prime.

Original entry on oeis.org

4, 6, 7, 8, 22, 32, 45, 52, 58, 60, 85, 98, 211, 290, 291, 426, 428, 712, 903, 1392, 1683, 1828, 2342, 3482, 4818, 4887, 9060, 14328, 16948, 17581, 18358, 65298, 69237, 84770, 94788
Offset: 1

Views

Author

Sébastien Tao, May 29 2023

Keywords

Comments

a(36) > 100000. - Hugo Pfoertner, Jun 03 2023

Examples

			a(1) = 4 is in the sequence because 3^3 - 2^4 =  11 is prime.
a(2) = 6 is in the sequence because 3^5 - 2^6 = 179 is prime.
		

Crossrefs

The sequence that results from increasing all terms by 1 in A162714 is a subsequence.

Programs

  • Mathematica
    Cases[Range[1, 300], k_ /; PrimeQ[3^(k - 1) - 2^k]]

Extensions

a(16)-a(31) from Michael S. Branicky, May 29 2023
a(32)-a(33) from Hugo Pfoertner, May 29 2023
a(34)-a(35) from Hugo Pfoertner, Jun 02 2023
Showing 1-3 of 3 results.