login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


Octanacci numbers.
10

%I #30 Mar 10 2021 18:19:13

%S 1,1,1,1,1,1,1,1,8,15,29,57,113,225,449,897,1793,3578,7141,14253,

%T 28449,56785,113345,226241,451585,901377,1799176,3591211,7168169,

%U 14307889,28558993,57004641,113783041,227114497,453327617,904856058,1806120905

%N Octanacci numbers.

%H Robert Price, <a href="/A123526/b123526.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Rec#order_08">Index entries for linear recurrences with constant coefficients</a>, signature (1,1,1,1,1,1,1,1).

%F a(n)=1 for 1 <= n <= 8, a(n) = a(n-1) + a(n-2) +...+ a(n-8) for n > 8.

%F G.f.: x*(1 -x^2 -2*x^3 -3*x^4 -4*x^5 -5*x^6 -6*x^7)/(1 -x -x^2 -x^3 -x^4 -x^5 -x^6 -x^7 -x^8). - _Colin Barker_, Oct 19 2015

%p m:=50; S:=series( x*(1-x^2-2*x^3-3*x^4-4*x^5-5*x^6-6*x^7)/(1-x-x^2-x^3-x^4-x^5-x^6-x^7-x^8), x, m+1):

%p seq(coeff(S, x, j), j=1..m); # _G. C. Greubel_, Mar 10 2021

%t Module[{nn=8,lr},lr=PadRight[{},nn,1];LinearRecurrence[lr,lr,20]] (* _Harvey P. Dale_, Feb 04 2015 *)

%o (PARI) Vec(x*(1-x^2-2*x^3-3*x^4-4*x^5-5*x^6-6*x^7)/(1-x-x^2-x^3-x^4-x^5-x^6-x^7-x^8) + O(x^50)) \\ _Colin Barker_, Oct 19 2015

%o (Sage)

%o @CachedFunction

%o def A123526(n):

%o if (n<9): return 1

%o else: return sum(A(n-j) for j in (1..8))

%o [A123526(n) for n in [1..50]] # _G. C. Greubel_, Mar 10 2021

%o (Magma)

%o R<x>:=PowerSeriesRing(Integers(), 50);

%o Coefficients(R!( x*(1-x^2-2*x^3-3*x^4-4*x^5-5*x^6-6*x^7)/(1-x-x^2-x^3-x^4-x^5-x^6-x^7-x^8) )); // _G. C. Greubel_, Mar 10 2021

%Y Cf. A000045, A000213, A000288, A000322, A000383, A060455, A079262.

%Y Cf. A254412, A254413. Indices of primes and primes in this sequence.

%K easy,nonn

%O 1,9

%A _Danny Rorabaugh_, Nov 10 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 22 11:40 EDT 2024. Contains 376114 sequences. (Running on oeis4.)