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.

A330888 Irregular triangle read by rows: T(n,k) is the number of parts in the partition of n into k consecutive parts that differ by 3, n >= 1, k >= 1, and the first element of column k is in the row that is the k-th pentagonal number (A000326).

This page as a plain text file.
%I A330888 #25 Oct 09 2020 10:52:07
%S A330888 1,1,1,1,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,3,1,2,0,1,0,0,1,2,3,1,0,0,1,
%T A330888 2,0,1,0,3,1,2,0,1,0,0,1,2,3,1,0,0,4,1,2,0,0,1,0,3,0,1,2,0,0,1,0,0,4,
%U A330888 1,2,3,0,1,0,0,0,1,2,0,0,1,0,3,4,1,2,0,0,1,0,0,0,1,2,3,0,1,0,0,4,1,2,0,0,5
%N A330888 Irregular triangle read by rows: T(n,k) is the number of parts in the partition of n into k consecutive parts that differ by 3, n >= 1, k >= 1, and the first element of column k is in the row that is the k-th pentagonal number (A000326).
%C A330888 Since the trivial partition n is counted, so T(n,1) = 1.
%C A330888 This is an irregular triangle read by rows: T(n,k), n >= 1, k >= 1, in which column k lists k's interleaved with k-1 zeros, and the first element of column k is in the row that is the k-th pentagonal number.
%F A330888 T(n,k) = k*A330887(n,k).
%e A330888 Triangle begins (rows 1..26):
%e A330888 1;
%e A330888 1;
%e A330888 1;
%e A330888 1;
%e A330888 1, 2;
%e A330888 1, 0;
%e A330888 1, 2;
%e A330888 1, 0;
%e A330888 1, 2;
%e A330888 1, 0;
%e A330888 1, 2;
%e A330888 1, 0, 3;
%e A330888 1, 2, 0;
%e A330888 1, 0, 0;
%e A330888 1, 2, 3;
%e A330888 1, 0, 0;
%e A330888 1, 2, 0;
%e A330888 1, 0, 3;
%e A330888 1, 2, 0;
%e A330888 1, 0, 0;
%e A330888 1, 2, 3;
%e A330888 1, 0, 0, 4;
%e A330888 1, 2, 0, 0;
%e A330888 1, 0, 3, 0;
%e A330888 1, 2, 0, 0;
%e A330888 1, 0, 0, 4;
%e A330888 ...
%e A330888 For n = 21 there are three partitions of 21 into consecutive parts that differ by 3, including 21 as a partition. They are [21], [12, 9] and [10, 7, 4]. The number of parts of these partitions are 1, 2 and 3 respectively, so the 21st row of the triangle is [1, 2, 3].
%p A330888 A330888 := proc(n,k)
%p A330888     k*A330887(n,k) ;
%p A330888 end proc:
%p A330888 for n from 1 to 40 do
%p A330888     for k from 1 do
%p A330888         if n>= A000325(k) then
%p A330888             printf("%d,",A330888(n,k)) ;
%p A330888         else
%p A330888             break;
%p A330888         end if;
%p A330888     end do:
%p A330888     printf("\n") ;
%p A330888 end do: # _R. J. Mathar_, Oct 02 2020
%Y A330888 Cf. A000326, A330887.
%Y A330888 Other triangles of the same family are A127093, A285914, A330466.
%K A330888 nonn,tabf
%O A330888 1,6
%A A330888 _Omar E. Pol_, Apr 30 2020