OFFSET
1,2
COMMENTS
LINKS
Ray Chandler, Table of n, a(n) for n = 1..1149
Index entries for linear recurrences with constant coefficients, signature (6,10,5,-5,-9,-5,-1).
FORMULA
G.f. = (x^7+6*x^6+15*x^5+19*x^4+11*x^3-x^2-5*x-1)/((1-x)*(x^6+6*x^5+15*x^4+20*x^3+15*x^2+5*x-1)) (From g.f. for A377917).
Recurrence: See Maple code.
The smallest root of the denominator of the g.f. is 0.134724138401519... whose reciprocal is (say) c1 = 7.422574840... Then a(n) is asymptotically c2*c1^n, for n >= 0, where c2 = 1.3824387... This is an excellent approximation. It gives a(22) = 0.1962667617*10^20, compared with a(22) = 19626676300599636003.
This also enables us to give a formula for the lower envelope of A342042 - see that entry for details.
MAPLE
MATHEMATICA
LinearRecurrence[{6, 10, 5, -5, -9, -5, -1}, {1, 11, 77, 566, 4197, 31148, 231193, 1716043}, 25] (* Paolo Xausa, Dec 02 2024 *)
PROG
(PARI) a(n)=if(n>1, ([0, 1, 0, 0, 0, 0, 0; 0, 0, 1, 0, 0, 0, 0; 0, 0, 0, 1, 0, 0, 0; 0, 0, 0, 0, 1, 0, 0; 0, 0, 0, 0, 0, 1, 0; 0, 0, 0, 0, 0, 0, 1; -1, -5, -9, -5, 5, 10, 6]^(n-2)*[11; 77; 566; 4197; 31148; 231193; 1716043])[1, 1], 1) \\ Charles R Greathouse IV, May 26 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Sebastian Karlsson and N. J. A. Sloane, Nov 30 2024
EXTENSIONS
More terms added based on A377917. - N. J. A. Sloane, Dec 01 2024
STATUS
approved
