OFFSET
1,1
COMMENTS
Nontrivial binomial coefficients are C(n,k) with 2 <= k <= n-2.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 12 since 6 is the lowest nontrivial binomial coefficient and 6+6 = 12.
MATHEMATICA
lim = 110; bc = {}; n = 4; While[c = Select[Binomial[n, Range[2, Floor[n/2]]], # <= lim &]; Length[c] > 0, bc = Join[bc, c]; n++]; bc = Sort[bc]; Select[Union[Flatten[Outer[Plus, bc, bc]]], # <= lim &] (* T. D. Noe, Mar 22 2012 *)
PROG
(PARI) list(lim)=my(v=List(), t, u=v); for(n=4, sqrtint(2*lim)+1, for(k=2, n\2, t=binomial(n, k); if(t>lim, break, listput(v, t)))); v=vecsort(Vec(v), , 8); for(i=1, #v, for(j=1, i, if(v[i]+v[j]>lim, break, listput(u, v[i]+v[j])))); vecsort(Vec(u), , 8) \\ Charles R Greathouse IV, Apr 03 2012
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Douglas Latimer, Mar 22 2012
STATUS
approved