title: Number Triangles N Moves 1
signature: pub fn number_triangles_n_moves_1(n: i32) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(n: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        16, 
        86093441
      ));
      
  }
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;
  }