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 A204008 #24 Jun 24 2017 00:58:59 %S A204008 1,4,4,7,5,7,10,8,8,10,13,11,9,11,13,16,14,12,12,14,16,19,17,15,13,15, %T A204008 17,19,22,20,18,16,16,18,20,22,25,23,21,19,17,19,21,23,25,28,26,24,22, %U A204008 20,20,22,24,26,28,31,29,27,25,23,21,23,25,27,29,31,34,32,30 %N A204008 Symmetric matrix based on f(i,j) = max{3i+j-3,i+3j-3}, by antidiagonals. %C A204008 A204008 represents the matrix M given by f(i,j)=max{3i+j-3,i+3j-3}for i>=1 and j>=1. See A204011 for characteristic polynomials of principal submatrices of M, with interlacing zeros. %C A204008 General case A206772. Let m be natural number. Table T(n,k)=max{m*n+k-m,n+m*k-m} read by antidiagonals. %C A204008 For m=1 the result is A002024, %C A204008 for m=2 the result is A204004, %C A204008 for m=3 the result is A204008, %C A204008 for m=4 the result is A206772. - _Boris Putievskiy_, Jan 24 2013 %H A204008 Boris Putievskiy, <a href="http://arxiv.org/abs/1212.2732">Transformations [Of] Integer Sequences And Pairing Functions</a>, arXiv preprint arXiv:1212.2732, 2012. %F A204008 From _Boris Putievskiy_, Jan 24 2013: (Start) %F A204008 For the general case, a(n) = m*A002024(n) + (m-1)*max{-A002260(n),-A004736(n)}. %F A204008 a(n) = m*(t+1) + (m-1)*max{t*(t+1)/2-n,n-(t*t+3*t+4)/2}, where t=floor((-1+sqrt(8*n-7))/2). %F A204008 For m=3, a(n) = 3*(t+1) + 2*max{t*(t+1)/2-n,n-(t*t+3*t+4)/2}, where t=floor((-1+sqrt(8*n-7))/2). (End) %e A204008 Northwest corner: %e A204008 1, 4, 7, 10 %e A204008 4, 5, 8, 11 %e A204008 7, 8, 9, 12 %e A204008 10, 11, 12, 13 %t A204008 f[i_, j_] := Max[3 i + j - 3, 3 j + i - 3]; %t A204008 m[n_] := Table[f[i, j], {i, 1, n}, {j, 1, n}] %t A204008 TableForm[m[6]] (* 6x6 principal submatrix *) %t A204008 Flatten[Table[f[i, n + 1 - i], %t A204008 {n, 1, 12}, {i, 1, n}]] (* A204008 *) %t A204008 p[n_] := CharacteristicPolynomial[m[n], x]; %t A204008 c[n_] := CoefficientList[p[n], x] %t A204008 TableForm[Flatten[Table[p[n], {n, 1, 10}]]] %t A204008 Table[c[n], {n, 1, 12}] %t A204008 Flatten[%] (* A204011 *) %t A204008 TableForm[Table[c[n], {n, 1, 10}]] %Y A204008 Cf. A204011, A202453, A002024, A204004, A002260, A004736, A206772. %K A204008 nonn,tabl %O A204008 1,2 %A A204008 _Clark Kimberling_, Jan 09 2012