title: Number Triangles N Moves 1
signature: func numberTrianglesNMoves1(n int) int {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int, expected int) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(n int, expected int) 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(16, 86093441)
      fmt.Printf("TEST-0...%s\n", result)
      
          
  }
source_py: def number_triangles_n_moves_1(n):
      ans = ((2 * pow(3, n)) - 1)
      return ans
source_cpp: int number_triangles_n_moves_1(int n) {
    int ans = 2 * ( pow ( 3, n ) ) - 1;
    return ans;
  }