# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a120846
Showing 1-1 of 1
%I A120846 #28 Sep 08 2022 08:45:26
%S A120846 2,6,15,38,101,280,799,2322,6825,20204,60083,179206,535549,1602528,
%T A120846 4799367,14381690,43112273,129271252,387682651,1162785774,3487832997,
%U A120846 10462450376,31385253935,94151567458,282446313721,847322163900
%N A120846 a(n) = 3^n + 2^n + n.
%H A120846 Vincenzo Librandi, Table of n, a(n) for n = 0..1000
%H A120846 Index entries for linear recurrences with constant coefficients, signature (7,-17,17,-6).
%F A120846 a(0)=2, a(1)=6, a(2)=15, a(3)=38, a(n) = 7*a(n-1)-17*a(n-2)+17*a(n-3)-6*a(n-4). [_Harvey P. Dale_, Oct 24 2011]
%F A120846 G.f.: (x^3+7*x^2-8*x+2)/((x-1)^2*(6*x^2-5*x+1)). [_Harvey P. Dale_, Oct 24 2011]
%p A120846 A120846:=n->3^n+2^n+n: seq(A120846(n), n=0..40); # _Wesley Ivan Hurt_, Jan 21 2017
%t A120846 Table[3^n + 2^n + n,{n, 0, 30}] (* or *) LinearRecurrence[{7, -17, 17, -6}, {2, 6, 15, 38}, 30] (* _Harvey P. Dale_, Oct 24 2011 *)
%o A120846 (Magma) [3^n+2^n+n: n in [0..30]]; // _Vincenzo Librandi_, Feb 27 2013
%Y A120846 Cf. A000079, A001047, A007689.
%K A120846 nonn,easy
%O A120846 0,1
%A A120846 _Mohammad K. Azarian_, Aug 18 2006
%E A120846 Edited by _Ray Chandler_, Sep 06 2006
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE