OFFSET
0,3
COMMENTS
For integers X, Y, let a(n) = (X^(t+1) - 1) / (X - 1) - Y^n, where t = floor(n*log_X(Y)) . This sequence is for X = 2, Y = 3.
FORMULA
a(n) = 2^(1 + floor(n*log_2(3))) - (3^n + 1).
EXAMPLE
a(0) = 2^(1 + floor(0*log_2(3))) - (3^0 + 1) = 0; a(4) = 2^(1 + floor(4*log_2(3))) - (3^4 + 1) = 46.
MATHEMATICA
Table[2^(1+Floor[n Log2[3]])-(3^n+1), {n, 0, 30}] (* Harvey P. Dale, Sep 04 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Apr 06 2020
STATUS
approved