Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BigInteger[] last = new[] { BigInteger.One },
- now = new[] { BigInteger.One, BigInteger.One },
- next;
- for (int row = 3; row < 202; row++)
- {
- next = new BigInteger[row];
- next[0] = next[row - 1] = 1;
- for (int col = 1; col < row - 1; col++) next[col] = now[col - 1] + now[col] + last[col - 1];
- last = now;
- now = next;
- }
- Console.WriteLine(now[100]);
- Console.ReadLine();
Advertisement
Add Comment
Please, Sign In to add comment