title: Find Sum Even Index Binomial Coefficients 1
signature: func findSumEvenIndexBinomialCoefficients1(n int) int64 {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int64, expected int64) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(n int, expected int64) string {
      if validateSolution(PLACEHOLDER_FN_NAME(n),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(56, 36028797018963968)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(28, 134217728)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(4, 8)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(24, 8388608)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(30, 536870912)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(48, 140737488355328)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(32, 2147483648)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(13, 4096)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(19, 262144)
      fmt.Printf("TEST-8...%s\n", result)
      
          
  }
source_py: def find_sum_even_index_binomial_coefficients_1(n):
      return (1 << (n - 1))
source_cpp: int find_sum_even_index_binomial_coefficients_1(int n) {
    return ( 1 << ( n - 1 ) );
  }