totalsum = 0;
For[i = 1, i <= 100, i++,
For[j = 1, j < i, j++,
If[Binomial[i, j] > 1000000, totalsum++];
];
];
Print[totalsum];
Subscribe to:
Post Comments (Atom)
Solutions to the Project Euler problems, coded in C++, Mathematica, and/or Pencil & Paper
No comments:
Post a Comment