title: Sum Of All Elements Up To Nth Row In A Pascals Triangle 1
signature: sumOfAllElementsUpToNthRowInAPascalsTriangle1 :: Integer -> Integer
  sumOfAllElementsUpToNthRowInAPascalsTriangle1 n = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Integer -> Integer -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: Integer -> Integer -> String
  driver n expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME n) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver (53) (9007199254740991) )
  
      printf "TEST-1...%s\n" (driver (3) (7) )
  
      printf "TEST-2...%s\n" (driver (28) (268435455) )
  
      printf "TEST-3...%s\n" (driver (44) (17592186044415) )
  
      printf "TEST-4...%s\n" (driver (46) (70368744177663) )
  
      printf "TEST-5...%s\n" (driver (3) (7) )
  
      printf "TEST-6...%s\n" (driver (16) (65535) )
  
source_py: def sum_of_all_elements_up_to_nth_row_in_a_pascals_triangle_1(n):
      sum = 0
      sum = (1 << n)
      return (sum - 1)
source_cpp: long long int sum_of_all_elements_up_to_nth_row_in_a_pascals_triangle_1(int n) {
    long long int sum = 0;
    sum = 1 << n;
    return ( sum - 1 );
  }