A023000 a(n) = (7^n - 1)/6.
0, 1, 8, 57, 400, 2801, 19608, 137257, 960800, 6725601, 47079208, 329554457, 2306881200, 16148168401, 113037178808, 791260251657, 5538821761600, 38771752331201, 271402266318408, 1899815864228857, 13298711049602000
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Shaoshi Chen, Hanqian Fang, Sergey Kitaev, and Candice X.T. Zhang, Patterns in Multi-dimensional Permutations, arXiv:2411.02897 [math.CO], 2024. See pp. 2, 17.
- Carlos M. da Fonseca and Anthony G. Shannon, A formal operator involving Fermatian numbers, Notes Num. Theor. Disc. Math. (2024) Vol. 30, No. 3, 491-498.
- Roger B. Eggleton, Maximal Midpoint-Free Subsets of Integers, International Journal of Combinatorics Volume 2015, Article ID 216475, 14 pages.
- Wolfdieter Lang, Notes on certain inhomogeneous three term recurrences.
- D. C. Santos, E. A. Costa, and P. M. M. C. Catarino, On Gersenne Sequence: A Study of One Family in the Horadam-Type Sequence, Axioms 14, 203, (2025). See p. 4.
- Eric Weisstein's World of Mathematics, Repunit.
- Wikipedia, As I was going to St Ives.
- Index entries for linear recurrences with constant coefficients, signature (8,-7).
Programs
-
Magma
[n le 2 select n-1 else 8*Self(n-1) - 7*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 08 2012
-
Mathematica
LinearRecurrence[{8, -7}, {0, 1}, 30] (* Vincenzo Librandi, Nov 08 2012 *) (7^Range[0,20]-1)/6 (* Harvey P. Dale, Aug 03 2020 *)
-
Maxima
A023000(n):=floor((7^n-1)/6)$ makelist(A023000(n),n,0,30); /* Martin Ettl, Nov 05 2012 */
-
PARI
a(n)=(7^n-1)/6; /* Joerg Arndt, May 28 2012 */
-
Sage
def a(n): return (7**n-1)//6 [a(n) for n in range(66)] # show terms # Joerg Arndt, May 28 2012
Formula
From R. J. Mathar, Jun 21 2009: (Start)
a(n) = 8*a(n-1) - 7*a(n-2).
G.f.: x/((1-x)*(1-7*x)). (End)
From Wolfdieter Lang, Oct 18 2010: (Start)
a(n) = 6*a(n-1) + 7*a(n-2) + 2, a(0)=0, a(1)=1.
a(n) = 7*a(n-1) + a(n-2) - 7*a(n-3) = 9*a(n-1) - 15*a(n-2) + 7*a(n-3), a(0)=0, a(1)=1, a(2)=8. Observation by G. Detlefs. See the W. Lang comment and link. (End)
a(n) = 7*a(n-1) + 1 (with a(0)=0). - Vincenzo Librandi, Nov 19 2010
a(n) = a(n-1) + 7^(n-1), with a(0)=0, n >= 1. - See a Wolfdieter Lang comment above, May 02 2012
E.g.f.: exp(4*x)*sinh(3*x)/3. - Stefano Spezia, Mar 11 2023
Comments