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.

A100583 Number of triangles in an n X n grid of squares with diagonals.

This page as a plain text file.
%I A100583 #12 Jun 13 2015 00:51:36
%S A100583 0,8,44,124,268,492,816,1256,1832,2560,3460,4548,5844,7364,9128,11152,
%T A100583 13456,16056,18972,22220,25820,29788,34144,38904,44088,49712,55796,
%U A100583 62356,69412,76980,85080,93728,102944,112744,123148,134172,145836
%N A100583 Number of triangles in an n X n grid of squares with diagonals.
%H A100583 Author?, <a href="http://www.wisfaq.nl/showrecord3.asp?id=30042">WisFaq (Dutch)</a>
%H A100583 Dave Richeson, <a href="http://divisbyzero.com/2011/02/10/counting-triangles-on-a-tin-ceiling-solution-2/">Counting triangles on a tin ceiling (solution, take 2)</a> (2011)
%H A100583 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (3,-2,-2,3,-1).
%F A100583 a(n) = (12*n^3+18*n^2+4*n+(-1)^n-1)/4. (For a proof see the Richeson link.)
%F A100583 a(n) = 4*Sum{i=1 to n}(i^2 + (n+1-i)*(n+1-round(i/2))).
%F A100583 G.f.: 4*x*(x+2)*(2*x+1) / ((x-1)^4*(x+1)). - _Colin Barker_, Aug 19 2014
%o A100583 (PARI) a(n)=3*n^3+9*n^2\2+n \\ _Charles R Greathouse IV_, Aug 19 2014
%K A100583 nonn,easy
%O A100583 0,2
%A A100583 _Floor van Lamoen_, Nov 30 2004