login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A371441
a(n) = a(n-1)*3^n + 1 where a(0)=1.
0
1, 4, 37, 1000, 81001, 19683244, 14349084877, 31381448626000, 205893684435186001, 4052605390737766057684, 239302295717674347940182517, 42391683779498857714559512339000, 22528678819460652442683221796950499001, 35917990801478965784376042224979510418771324
OFFSET
0,2
FORMULA
a(n) = Sum_{k=0..n} 3^(k*(2*n + 1 - k)/2). - Vaclav Kotesovec, Apr 10 2024
MATHEMATICA
Table[Sum[3^(k*(2*n + 1 - k)/2), {k, 0, n}], {n, 0, 15}] (* Vaclav Kotesovec, Apr 10 2024 *)
Block[{n = 0}, NestList[#*3^++n + 1 &, 1, 15]] (* Paolo Xausa, Apr 19 2024 *)
PROG
(Python)
l = [1]
for i in range(1, 14):
l.append(l[-1]*pow(3, i) + 1)
print(l)
CROSSREFS
Sequence in context: A163880 A183509 A220245 * A280219 A027461 A144991
KEYWORD
nonn,easy
AUTHOR
Alexandre Herrera, Mar 23 2024
STATUS
approved