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.

A026121 a(n) = 3^n*(3^n-1)/2.

Original entry on oeis.org

0, 3, 36, 351, 3240, 29403, 265356, 2390391, 21520080, 193700403, 1743362676, 15690441231, 141214502520, 1270932117003, 11438393835996, 102945558872871, 926510072902560, 8338590785263203, 75047317454789316, 675425858255365311
Offset: 0

Views

Author

Keywords

Comments

Sum of all base-3 numbers with length at most n. - Alois P. Heinz, Feb 23 2020

Crossrefs

Programs

Formula

a(n) = C(3^n,2), n>=0. - Zerinvary Lajos, Jan 07 2008
a(0) = 0, a(1)=3, a(n)=12*a(n-1)-27*a(n-2). - Harvey P. Dale, Oct 07 2012
G.f.: 3*x / ( (9*x-1)*(3*x-1) ). a(n) = 3*A016142(n-1). - R. J. Mathar, Mar 24 2013