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.

A084173 a(n) = 3*a(n-1) - a(n-2) - 3*a(n-3) + 2*a(n-4).

This page as a plain text file.
%I A084173 #19 Sep 08 2022 08:45:11
%S A084173 1,3,5,13,27,59,121,249,503,1015,2037,4085,8179,16371,32753,65521,
%T A084173 131055,262127,524269,1048557,2097131,4194283,8388585,16777193,
%U A084173 33554407,67108839,134217701,268435429,536870883,1073741795,2147483617
%N A084173 a(n) = 3*a(n-1) - a(n-2) - 3*a(n-3) + 2*a(n-4).
%C A084173 Original name was: A sum of generalized Jacobsthal numbers.
%H A084173 Vincenzo Librandi, <a href="/A084173/b084173.txt">Table of n, a(n) for n = 0..1000</a>
%H A084173 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (3,-1,-3,2).
%F A084173 a(n) = 2^(n+1) - (2*n+1)/2 - (-1)^n/2.
%F A084173 G.f.: (4*x^3 - 3*x^2 + 1)/(-2*x^4 + 3*x^3 + x^2 - 3*x + 1).
%F A084173 a(n) = A084172(n) + A083579(n).
%t A084173 a[n_]:=2^(n+1) - (2*n+1)/2 - (-1)^n/2; Array[a, 50, 0] (* or *)
%t A084173 CoefficientList[Series[(4*x^3 - 3*x^2 + 1)/(-2*x^4 + 3*x^3 + x^2 - 3*x + 1), {x, 0, 50}], x] (* or *)
%t A084173 LinearRecurrence[{3, -1, -3, 2}, {1, 3, 5, 13}, 50] (* _Stefano Spezia_, Oct 08 2018 *)
%o A084173 (Magma) [2^(n+1)-(2*n+1)/2-(-1)^n/2: n in [0..35]]; // _Vincenzo Librandi_, Jul 05 2011
%o A084173 (PARI) x='x+O('x^33); Vec((4*x^3-3*x^2+1)/(-2*x^4+3*x^3+x^2-3*x+1)) \\ _Altug Alkan_, Oct 08 2018
%K A084173 easy,nonn
%O A084173 0,2
%A A084173 _Paul Barry_, May 18 2003