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.

A181565 a(n) = 3*2^n + 1.

Original entry on oeis.org

4, 7, 13, 25, 49, 97, 193, 385, 769, 1537, 3073, 6145, 12289, 24577, 49153, 98305, 196609, 393217, 786433, 1572865, 3145729, 6291457, 12582913, 25165825, 50331649, 100663297, 201326593, 402653185, 805306369, 1610612737, 3221225473
Offset: 0

Views

Author

M. F. Hasler, Oct 30 2010

Keywords

Comments

From Peter Bala, Oct 28 2013: (Start)
Let x and b be positive real numbers. We define an Engel expansion of x to the base b to be a (possibly infinite) nondecreasing sequence of positive integers [a(1), a(2), a(3), ...] such that we have the series representation x = b/a(1) + b^2/(a(1)*a(2)) + b^3/(a(1)*a(2)*a(3)) + .... Depending on the values of x and b such an expansion may not exist, and if it does exist it may not be unique. When b = 1 we recover the ordinary Engel expansion of x.
This sequence gives an Engel expansion of 2/3 to the base 2, with the associated series expansion 2/3 = 2/4 + 2^2/(4*7) + 2^3/(4*7*13) + 2^4/(4*7*13*25) + ....
More generally, for n and m positive integers, the sequence [m + 1, n*m + 1, n^2*m + 1, ...] gives an Engel expansion of the rational number n/m to the base n. See the cross references for several examples. (End)
The only squares in this sequence are 4, 25, 49. - Antti Karttunen, Sep 24 2023

Crossrefs

Essentially a duplicate of A004119.
A002253 and A039687 give the primes in this sequence, and A181492 is the subsequence of twin primes.

Programs

Formula

a(n) = A004119(n+1) = A103204(n+1) for all n >= 0.
From Ilya Gutkovskiy, Jun 01 2016: (Start)
O.g.f.: (4 - 5*x)/((1 - x)*(1 - 2*x)).
E.g.f.: (1 + 3*exp(x))*exp(x).
a(n) = 3*a(n-1) - 2*a(n-2). (End)
a(n) = 2*a(n-1) - 1. - Miquel Cerda, Aug 16 2016
For n >= 0, A005940(a(n)) = A001248(1+n). - Antti Karttunen, Sep 24 2023