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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A275176 a(n) = (3 * a(n-3) + a(n-1) * a(n-5)) / a(n-6), a(0) = a(1) = ... = a(5) = 1. 3

%I #21 Aug 08 2016 23:50:45

%S 1,1,1,1,1,1,4,7,10,22,43,202,370,547,1264,2521,11881,21781,32221,

%T 74521,148681,700744,1284667,1900450,4395442,8769643,41331982,

%U 75773530,112094287,259256524,517260241,2437886161,4469353561,6611662441,15291739441,30509584561

%N a(n) = (3 * a(n-3) + a(n-1) * a(n-5)) / a(n-6), a(0) = a(1) = ... = a(5) = 1.

%C Inspired by A048736.

%H Colin Barker, <a href="/A275176/b275176.txt">Table of n, a(n) for n = 0..1000</a>

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

%F G.f.: (1 +x +x^2 +x^3 +x^4 -59*x^5 -56*x^6 -53*x^7 -50*x^8 -38*x^9 +43*x^10 +22*x^11 +10*x^12 +7*x^13 +4*x^14) / ((1 -x)*(1 +x +x^2 +x^3 +x^4)*(1 -59*x^5 +x^10)). - _Colin Barker_, Jul 19 2016

%F a(n) = 60*a(n-5) - 60*a(n-10) + a(n-15).

%t RecurrenceTable[{a[n] == (3 a[n - 3] + a[n - 1] a[n - 5])/a[n - 6], a[1] == 1, a[2] == 1, a[3] == 1, a[4] == 1, a[5] == 1, a[6] == 1}, a, {n, 36}] (* _Michael De Vlieger_, Jul 19 2016 *)

%o (Ruby)

%o def A(k, l, n)

%o a = Array.new(k * 2, 1)

%o ary = [1]

%o while ary.size < n + 1

%o break if (a[1] * a[-1] + a[k] * l) % a[0] > 0

%o a = *a[1..-1], (a[1] * a[-1] + a[k] * l) / a[0]

%o ary << a[0]

%o end

%o ary

%o end

%o def A275176(n)

%o A(3, 3, n)

%o end

%o (PARI) Vec((1 +x +x^2 +x^3 +x^4 -59*x^5 -56*x^6 -53*x^7 -50*x^8 -38*x^9 +43*x^10 +22*x^11 +10*x^12 +7*x^13 +4*x^14) / ((1 -x)*(1 +x +x^2 +x^3 +x^4)*(1 -59*x^5 +x^10)) + O(x^50)) \\ _Colin Barker_, Jul 19 2016

%Y Cf. A048736, A275173, A275175.

%K nonn,easy

%O 0,7

%A _Seiichi Manyama_, Jul 19 2016

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 18 18:49 EDT 2024. Contains 371781 sequences. (Running on oeis4.)