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.

A318955 Binomial(A319500(n),a(n)) = A006917(n) with 2 <= a(n) <= A319500(n)/2.

This page as a plain text file.
%I A318955 #11 Sep 21 2018 22:37:00
%S A318955 2,2,2,3,2,2,3,2,2,2,3,2,4,2,3,2,2,3,4,2,2,3,2,2,4,3,2,5,2,2,3,2,2,4,
%T A318955 2,3,2,2,2,3,5,2,4,2,2,3,2,2,2,2,3,2,4,2,2,5,3,2,2,2,6,2,3,2,4,2,2,2,
%U A318955 3,2,2,2,5,2,3,4,2,2,2,3,2,2,2,6,2,3,4,2,2,2,5,2,3,2,2,2,2,3,2
%N A318955 Binomial(A319500(n),a(n)) = A006917(n) with 2 <= a(n) <= A319500(n)/2.
%C A318955 First differs from A022912 at n=18.
%H A318955 Robert Israel, <a href="/A318955/b318955.txt">Table of n, a(n) for n = 1..10000</a>
%e A318955 a(3) = 6 because A006987(3) = 15 = binomial(6,2).
%p A318955 N:= 10000: # for binomial(n, k) values <= N
%p A318955 S:= {}:
%p A318955 for n from 2 while n*(n-1)/2 <= N do
%p A318955   for k from 2 to n/2 do
%p A318955     v:= binomial(n, k);
%p A318955     if v > N then break fi;
%p A318955     if not member(v,S) then
%p A318955       S:= S union {v};
%p A318955       K[v]:= k;
%p A318955     fi
%p A318955 od od:
%p A318955 A006987:= sort(convert(S,list)):
%p A318955 seq(K[A006987[i]],i=1..nops(A006987));
%Y A318955 Cf. A006987, A022912, A319500.
%K A318955 nonn
%O A318955 1,1
%A A318955 _Robert Israel_, Sep 20 2018