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.

A258340 a(n) = (7^n + 3^n - 2)/8.

Original entry on oeis.org

1, 7, 46, 310, 2131, 14797, 103216, 721420, 5046661, 35316787, 247187986, 1730227330, 12111325591, 84778481977, 593446982356, 4154121702040, 29078830390921, 203551748166367, 1424862043454326, 9974033723049550, 69818234317954651, 488727634995505957
Offset: 1

Views

Author

Edwin McCravy, Aug 05 2015

Keywords

Comments

This sequence appeared on an test given to job interviewers.

Crossrefs

Cf. A074608.

Programs

Formula

a(n) = (A074608(n) - 2)/8. - Michel Marcus, Aug 20 2015
G.f.: x*(1-4*x)/((1-x)*(1-3*x)*(1-7*x)). - Vincenzo Librandi, Aug 22 2015
a(n) = 11*a(n-1) - 31*a(n-2) + 21*a(n-3) with n>2, a(0)=0. - Bruno Berselli, Aug 24 2015
a(n) = Sum_{k=1..n} A027907(n,2k)*4^(k-1) . - J. Conrad, Aug 30 2016