using System.Collections.Generic;
public static void Main()
Assert.AreEqual(new BigInteger[] { 1, 2, 4, 8, 16 }, PowersOfTwo(4));
public static BigInteger[] PowersOfTwo(int n)
List<BigInteger> ans= new List<BigInteger>();
ans2 = (BigInteger) Math.Pow(2.0, pow);