title: Number Triangles N Moves 1
signature: fun numberTrianglesNMoves1(n: Int): Int {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(16, 86093441)
      println("TEST-0...${result}")
      
          
  }
  
  main()
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;
  }