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.

A003063 a(n) = 3^(n-1) - 2^n.

Original entry on oeis.org

-1, -1, 1, 11, 49, 179, 601, 1931, 6049, 18659, 57001, 173051, 523249, 1577939, 4750201, 14283371, 42915649, 128878019, 386896201, 1161212891, 3484687249, 10456158899, 31372671001, 94126401611, 282395982049, 847221500579, 2541731610601, 7625329049531, 22876255584049
Offset: 1

Views

Author

Henrik Johansson (Henrik.Johansson(AT)Nexus.SE)

Keywords

Comments

Binomial transform of A000918: (-1, 0, 2, 6, 14, 30, ...). - Gary W. Adamson, Mar 23 2012
This sequence demonstrates 2^n as a loose lower bound for g(n) in Waring's problem. Since 3^n > 2(2^n) for all n > 2, the number 2^(n + 1) - 1 requires 2^n n-th powers for its representation since 3^n is not available for use in the sum: the gulf between the relevant powers of 2 and 3 widens considerably as n gets progressively larger. - Alonso del Arte, Feb 01 2013

Examples

			a(3) = 1 because 3^2 - 2^3 = 9 - 8 = 1.
a(4) = 11 because 3^3 - 2^4 = 27 - 16 = 11.
a(5) = 49 because 3^4 - 2^5 = 81 - 32 = 49.
		

Crossrefs

Cf. A000918, A056182 (first differences), A064686, A083313, A214091, A369490.
Cf. A363024 (prime terms).
From the third term onward the first differences of A005173.
Difference between two leftmost columns of A090888.
A diagonal in A254027.
Right edge of irregular triangle A252750.

Programs

Formula

Let b(n) = 2*(3/2)^n - 1. Then a(n) = -b(1-n)*3^(n-1) for n > 0. A083313(n) = A064686(n) = b(n)*2^(n-1) for n > 0. - Michael Somos, Aug 06 2006
From Colin Barker, May 27 2013: (Start)
a(n) = 5*a(n-1) - 6*a(n-2).
G.f.: -x*(1-4*x) / ((1-2*x)*(1-3*x)). (End)
E.g.f.: (1/3)*(2 - 3*exp(2*x) + exp(3*x)). - G. C. Greubel, Nov 03 2022

Extensions

A few more terms from Alonso del Arte, Feb 01 2013

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