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.

A261840 Number of compositions of n into distinct parts where each part i is marked with a word of length i over a binary alphabet whose letters appear in alphabetical order.

This page as a plain text file.
%I A261840 #5 Sep 03 2015 03:50:19
%S A261840 1,2,3,16,21,50,205,292,587,1110,4535,5980,12447,20910,40195,142520,
%T A261840 196291,372042,635081,1128872,1873245,6537466,8553639,16333532,
%U A261840 26470861,46629886,73222631,127947300,385293581,518212198,939401193,1516760160,2564361235
%N A261840 Number of compositions of n into distinct parts where each part i is marked with a word of length i over a binary alphabet whose letters appear in alphabetical order.
%C A261840 Also matrices with two rows of nonnegative integers with distinct positive column sums and total element sum n.
%H A261840 Alois P. Heinz, <a href="/A261840/b261840.txt">Table of n, a(n) for n = 0..5000</a>
%p A261840 b:= proc(n, i, p) option remember;
%p A261840       `if`(i*(i+1)/2<n, 0, `if`(n=0, p!, b(n, i-1, p)+
%p A261840       `if`(i>n, 0, b(n-i, i-1, p+1)*(i+1))))
%p A261840     end:
%p A261840 a:= n-> b(n$2, 0):
%p A261840 seq(a(n), n=0..40);
%Y A261840 Column k=2 of A261835.
%K A261840 nonn
%O A261840 0,2
%A A261840 _Alois P. Heinz_, Sep 03 2015