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 A014640 #17 Jan 27 2016 09:17:45 %S A014640 0,18,34,112,148,286,342,540,616,874,970,1288,1404,1782,1918,2356, %T A014640 2512,3010,3186,3744,3940,4558,4774,5452,5688,6426,6682,7480,7756, %U A014640 8614,8910,9828,10144,11122,11458,12496,12852,13950,14326,15484,15880,17098,17514,18792 %N A014640 Even heptagonal numbers (A000566). %H A014640 Colin Barker, <a href="/A014640/b014640.txt">Table of n, a(n) for n = 0..1000</a> %H A014640 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,2,-2,-1,1). %F A014640 G.f.: -2*x*(2*x^3+21*x^2+8*x+9) / ((x+1)^2*(x-1)^3) [From Maksym Voznyy (voznyy(AT)mail.ru), Aug 11 2009] %F A014640 a(0)=0, a(1)=18, a(2)=34, a(3)=112, a(4)=148, a(n) = a(n-1)+2*a(n-2)-2*a(n-3)-a(n-4)+a(n-5). - _Harvey P. Dale_, Jun 16 2014 %F A014640 From _Colin Barker_, Jan 27 2016: (Start) %F A014640 a(n) = (20*n^2-10*(-1)^n*n+4*n-(-1)^n+1)/2. %F A014640 a(n) = 10*n^2-3*n for n even. %F A014640 a(n) = 10*n^2+7*n+1 for n odd. %F A014640 (End) %t A014640 Select[Table[(n(5n-3))/2,{n,0,100}],EvenQ] (* or *) LinearRecurrence[ {1,2,-2,-1,1},{0,18,34,112,148},50] (* _Harvey P. Dale_, Jun 16 2014 *) %o A014640 (PARI) concat(0, Vec(2*x*(9+8*x+21*x^2+2*x^3)/((1-x)^3*(1+x)^2) + O(x^100))) \\ _Colin Barker_, Jan 27 2016 %Y A014640 Cf. A000566, A014637, A014773, A014792. %K A014640 nonn,easy %O A014640 0,2 %A A014640 _Mohammad K. Azarian_ %E A014640 Extended and description corrected by _Patrick De Geest_