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.

A261855 Number of compositions of n into distinct parts where each part i is marked with a word of length i over a quaternary alphabet whose letters appear in alphabetical order and all letters occur at least once in the composition.

This page as a plain text file.
%I A261855 #4 Sep 03 2015 12:14:03
%S A261855 9,92,1562,3908,14791,50208,540552,987120,3138143,7862580,23436690,
%T A261855 204455140,349297653,956040232,2228084512,5599922904,13449425997,
%U A261855 116772809532,182990434794,483410072060,1033025269277,2455590595520,5184309618676,12755194552152
%N A261855 Number of compositions of n into distinct parts where each part i is marked with a word of length i over a quaternary alphabet whose letters appear in alphabetical order and all letters occur at least once in the composition.
%C A261855 Also number of matrices with four rows of nonnegative integer entries and without zero rows or columns such that the sum of all entries is equal to n and the column sums are distinct.
%H A261855 Alois P. Heinz, <a href="/A261855/b261855.txt">Table of n, a(n) for n = 4..2500</a>
%F A261855 a(n) = A261836(n,4).
%p A261855 b:= proc(n, i, p, k) option remember;
%p A261855       `if`(i*(i+1)/2<n, 0, `if`(n=0, p!, b(n, i-1, p, k)+
%p A261855       `if`(i>n, 0, b(n-i, i-1, p+1, k)*binomial(i+k-1, k-1))))
%p A261855     end:
%p A261855 a:= n->(k->add(b(n$2, 0, k-i)*(-1)^i*binomial(k, i), i=0..k))(4):
%p A261855 seq(a(n), n=4..40);
%Y A261855 Column k=4 of A261836.
%K A261855 nonn
%O A261855 4,1
%A A261855 _Alois P. Heinz_, Sep 03 2015