OFFSET
0,1
LINKS
Jianing Song, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-3).
FORMULA
G.f.: (5-x)/((1-x)*(1-3*x)).
E.g.f.: 7*exp(3*x) - 2*exp(x).
EXAMPLE
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 ...
MATHEMATICA
7*3^Range[0, 50] - 2 (* Paolo Xausa, Jun 10 2024 *)
PROG
(PARI) a(n)=7*3^n-2
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Oct 07 2022
STATUS
approved