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.

A126394 Number of base 7 n-digit numbers with adjacent digits differing by two or less.

Original entry on oeis.org

1, 7, 29, 125, 543, 2363, 10287, 44787, 194995, 848979, 3696331, 16093291, 70067867, 305065387, 1328210699, 5782837835, 25177641963, 109619822123, 477268896747, 2077959947307, 9047137938475, 39389933855019
Offset: 0

Views

Author

R. H. Hardin, Dec 28 2006

Keywords

Comments

a(base,n)=a(base-1,n)+5^(n-1) for base>=2n-1; a(base,n)=a(base-1,n)+5^(n-1)-2 when base=2n-2.

Crossrefs

Cf. Base 7 differing by one or less A126361.

Formula

G.f.: 1 -x*(7-6*x-6*x^2+4*x^3) / ( (x-1)*(2*x^3-2*x^2-4*x+1) ). - R. J. Mathar, Jun 06 2013