A355492 a(n) = 7*3^n - 2.
5, 19, 61, 187, 565, 1699, 5101, 15307, 45925, 137779, 413341, 1240027, 3720085, 11160259, 33480781, 100442347, 301327045, 903981139, 2711943421, 8135830267, 24407490805, 73222472419, 219667417261, 659002251787, 1977006755365, 5931020266099, 17793060798301, 53379182394907
Offset: 0
Examples
The numbers not appearing in A171884 are those in the range [5*3^k-1, 7*3^k-2] for some k; that is, [4, 5] U [14, 19] U [44, 61] U ...
Links
- Jianing Song, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (4,-3).
Programs
-
Mathematica
7*3^Range[0, 50] - 2 (* Paolo Xausa, Jun 10 2024 *)
-
PARI
a(n)=7*3^n-2
Formula
G.f.: (5-x)/((1-x)*(1-3*x)).
E.g.f.: 7*exp(3*x) - 2*exp(x).
Comments