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.

A024028 a(n) = 3^n - n^5.

This page as a plain text file.
%I A024028 #18 Sep 08 2022 08:44:48
%S A024028 1,2,-23,-216,-943,-2882,-7047,-14620,-26207,-39366,-40951,16096,
%T A024028 282609,1223030,4245145,13589532,41998145,127720306,385530921,
%U A024028 1159785368,3483584401
%N A024028 a(n) = 3^n - n^5.
%H A024028 Vincenzo Librandi, <a href="/A024028/b024028.txt">Table of n, a(n) for n = 0..200</a>
%H A024028 <a href="/index/Rec#order_07">Index entries for linear recurrences with constant coefficients</a>, signature (9,-33,65,-75,51,-19,3).
%F A024028 a(n) = 3^n - n^5.
%F A024028 From _Chai Wah Wu_, Jul 10 2016: (Start)
%F A024028 a(n) = 9*a(n-1) - 33*a(n-2) + 65*a(n-3) - 75*a(n-4) + 51*a(n-5) - 19*a(n-6) + 3*a(n-7) for n > 6.
%F A024028 G.f.: (-4*x^6 - 71*x^5 - 187*x^4 + 8*x^3 + 8*x^2 + 7*x - 1)/((x - 1)^6*(3*x - 1)). (End)
%t A024028 Table[3^n-n^5,{n,0,30}] (* or  *) LinearRecurrence[{9,-33,65,-75,51,-19,3},{1,2,-23,-216,-943,-2882,-7047},30] (* _Harvey P. Dale_, Dec 16 2021 *)
%o A024028 (Magma) [3^n-n^5 : n in [0..30]]; // _Vincenzo Librandi_, May 17 2011
%Y A024028 Cf. A000244 (3^n), A000584 (n^5).
%K A024028 sign
%O A024028 0,2
%A A024028 _N. J. A. Sloane_