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.
%I A155596 #26 Mar 10 2022 05:29:35 %S A155596 1,4,22,118,610,3094,15562,77998,390370,1952614,9764602,48826078, %T A155596 244136530,1220694934,6103499242,30517545358,152587825090, %U A155596 762939322054,3814697003482,19073485803838,95367430592050,476837156105974 %N A155596 a(n) = 5^n - 2^n + 1^n. %H A155596 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (8,-17,10). %F A155596 G.f.: 1/(1-5*x)-1/(1-2*x)+1/(1-x). %F A155596 E.g.f.: e^(5*x) - e^(2*x) + e^x. %F A155596 a(n) = 7*a(n-1)-10*a(n-2)+4 with a(0)=1, a(1)=4. - _Vincenzo Librandi_, Jul 21 2010 %F A155596 a(n) = A005057(n)+1. - _R. J. Mathar_, Mar 10 2022 %t A155596 Table[5^n-2^n+1,{n,0,30}] (* or *) LinearRecurrence[{8,-17,10},{1,4,22},30] (* _Harvey P. Dale_, Sep 11 2019 *) %o A155596 (PARI) a(n)=5^n-2^n+1 \\ _Charles R Greathouse IV_, Sep 24 2015 %Y A155596 Cf. A074501, A020515, A155588, A155590, A155592, A155593, A155594. %K A155596 nonn,easy %O A155596 0,2 %A A155596 _Mohammad K. Azarian_, Jan 25 2009