title: Number Triangles N Moves 1
signature: number_triangles_n_moves_1 <- function(n) {
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;
  }