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.

A221905 a(n) = 3^n + 3*n.

This page as a plain text file.
%I A221905 #32 Apr 12 2025 18:29:40
%S A221905 1,6,15,36,93,258,747,2208,6585,19710,59079,177180,531477,1594362,
%T A221905 4783011,14348952,43046769,129140214,387420543,1162261524,3486784461,
%U A221905 10460353266,31381059675,94143178896,282429536553,847288609518,2541865828407,7625597485068,22876792455045
%N A221905 a(n) = 3^n + 3*n.
%H A221905 Vincenzo Librandi, <a href="/A221905/b221905.txt">Table of n, a(n) for n = 0..1000</a>
%H A221905 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (5,-7,3).
%F A221905 G.f.: (1 + x - 8*x^2)/((1-x)^2*(1-3*x)).
%F A221905 a(n) = 5*a(n-1) - 7*a(n-2) + 3*a(n-3).
%F A221905 a(n) = A176805(n) - 1.
%F A221905 E.g.f.: exp(x)*(exp(2*x) + 3*x). - _Elmo R. Oliveira_, Sep 10 2024
%t A221905 Table[(3^n + 3 n), {n, 0, 30}] (* or *) CoefficientList[Series[(1 + x - 8 x^2)/((1 - x)^2 (1 -3 x)), {x, 0, 30}], x]
%o A221905 (Magma) [3^n+3*n: n in [0..30]];
%o A221905 (Magma) I:=[1, 6, 15]; [n le 3 select I[n] else 5*Self(n-1)-7*Self(n-2)+3*Self(n-3): n in [1..30]];
%Y A221905 Cf. A107583, A176805, A370658.
%K A221905 nonn,easy
%O A221905 0,2
%A A221905 _Vincenzo Librandi_, Mar 02 2013