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 A168414 #27 Aug 02 2025 06:43:50 %S A168414 6,6,15,15,24,24,33,33,42,42,51,51,60,60,69,69,78,78,87,87,96,96,105, %T A168414 105,114,114,123,123,132,132,141,141,150,150,159,159,168,168,177,177, %U A168414 186,186,195,195,204,204,213,213,222,222,231,231,240,240,249,249,258 %N A168414 a(n) = (18*n - 9*(-1)^n - 3)/4. %H A168414 Vincenzo Librandi, <a href="/A168414/b168414.txt">Table of n, a(n) for n = 1..1000</a> %H A168414 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (1,1,-1). %F A168414 a(n) = 9*n - a(n-1) - 6, n>1. %F A168414 From _R. J. Mathar_, Jul 10 2011: (Start) %F A168414 a(n) = 3*A168236(n). %F A168414 G.f.: 3*x*(2 + x^2) / ( (1+x)*(x-1)^2 ). (End) %F A168414 a(n) = 6 + 9*Floor((n-1)/2). - _Vincenzo Librandi_, Sep 19 2013 %F A168414 From _G. C. Greubel_, Jul 22 2016: (Start) %F A168414 a(n) = a(n-1) + a(n-2) - a(n-3). %F A168414 E.g.f.: (3/4)*(-3 + 4*exp(x) +(6*x - 1)*exp(2*x))*exp(-x). (End) %t A168414 Table[6 + 9 Floor[(n - 1)/2], {n, 70}] (* or *) CoefficientList[Series[3 (2 + x^2)/((1 + x) (x - 1)^2), {x, 0, 70}], x] (* _Vincenzo Librandi_, Sep 19 2013 *) %t A168414 LinearRecurrence[{1,1,-1},{6,6,15},60] (* _Harvey P. Dale_, May 17 2017 *) %o A168414 (Magma) [6+9*Floor((n-1)/2): n in [1..70]]; // _Vincenzo Librandi_, Sep 19 2013 %K A168414 nonn,easy %O A168414 1,1 %A A168414 _Vincenzo Librandi_, Nov 25 2009 %E A168414 Definition replaced by Lava formula of Nov 2009. - _R. J. Mathar_, Jul 10 2011