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 A145518 #23 Jan 03 2022 21:12:45 %S A145518 2,3,4,5,6,8,7,19,12,16,11,29,38,24,32,13,68,85,76,48,64,17,94,181, %T A145518 170,152,96,128,19,177,326,443,340,304,192,256,23,231,683,787,886,680, %U A145518 608,384,512,29,400,1066,1780,1817,1772,1360,1216,768,1024,31,484,1899,3119 %N A145518 Triangle read by rows: T1[n,k;x] := Sum_{partitions with k parts p(n, k; m_1, m_2, m_3, ..., m_n)} x_1^m_1 * x_2^m_2 * ... x^n*m_n, for x_i = A000040(i). %C A145518 Let p(n; m_1, m_2, m_3, ..., m_n) denote a partition of integer n in exponential representation, i.e., the m_i are the counts of parts i and satisfy 1*m_1 + 2*m_2 + 3*m_3 + ... + n*m_n = n. %C A145518 Let p(n, k; m_1, m_2, m_3, ..., m_n) be the partitions of n into exactly k parts; these are further constrained by m_1 + m_2 + m_3 + ... + m_n = k. %C A145518 Then the triangle is given by T1[n,k;x] := Sum_{all p(n, k; m_1, m_2, m_3, ..., m_n)} x_1^m_1 * x_2^m_2 * ... x^n*m_n, where x_i is the i-th prime number (A000040). %C A145518 2nd column (4, 6, 19, 29, 68, 94, 177, ...) is A024697. %C A145518 Row sums give A145519. %H A145518 Alois P. Heinz, <a href="/A145518/b145518.txt">Rows n = 1..141, flattened</a> %H A145518 Tilman Neumann, <a href="http://www.tilman-neumann.de/science.html">More terms, partition generator and transform implementation</a>. %e A145518 Triangle starts: %e A145518 2; %e A145518 3, 4; %e A145518 5, 6, 8; %e A145518 7, 19, 12, 16; %e A145518 11, 29, 38, 24, 32; %e A145518 13, 68, 85, 76, 48, 64; %e A145518 ... %p A145518 g:= proc(n, i) option remember; `if`(n=0 or i=1, (2*x)^n, %p A145518 expand(add(g(n-i*j, i-1)*(ithprime(i)*x)^j, j=0..n/i))) %p A145518 end: %p A145518 T:= n-> (p-> seq(coeff(p, x, i), i=1..n))(g(n$2)): %p A145518 seq(T(n), n=1..12); # _Alois P. Heinz_, May 25 2015 %t A145518 g[n_, i_] := g[n, i] = If[n==0 || i==1, (2 x)^n, Expand[Sum[g[n-i*j, i-1]*(Prime[i]*x)^j, {j, 0, n/i}]]]; T[n_] := Function[{p}, Table[Coefficient[p, x, i], {i, 1, n}]][g[n, n]]; Table[T[n], {n, 1, 12}] // Flatten (* _Jean-François Alcover_, Jul 15 2015, after _Alois P. Heinz_ *) %Y A145518 Cf. A000040, A024697, A145519, A145520, A258323. %K A145518 nonn,tabl %O A145518 1,1 %A A145518 _Tilman Neumann_, Oct 12 2008 %E A145518 Reference to more terms etc. changed to make it version independent by _Tilman Neumann_, Sep 02 2009