fork download
  1. n=55;
  2. kk=24;
  3. fprintf('%f\n',nchoosek(n,kk));
  4. fprintf('%f\n',nchoosek(n-1,kk)+nchoosek(n-1,kk-1));
  5. fprintf('%f\n',nchoosek(n-2,kk)+nchoosek(n-2,kk-1)+nchoosek(n-2,kk-1)+nchoosek(n-2,kk-2));
Success #stdin #stdout #stderr 0.44s 121792KB
stdin
Standard input is empty
stdout
2488589544741302.000000
2488589544741301.000000
2488589544741300.000000

stderr
warning: nchoosek: possible loss of precision
warning: called from
    nchoosek at line 111 column 7
warning: nchoosek: possible loss of precision
warning: called from
    nchoosek at line 111 column 7
warning: nchoosek: possible loss of precision
warning: nchoosek: possible loss of precision
warning: called from
    nchoosek at line 111 column 7
warning: nchoosek: possible loss of precision
warning: nchoosek: possible loss of precision
warning: nchoosek: possible loss of precision