title: Number Triangles N Moves 1
signature: numberTrianglesNMoves1 :: Integer -> Integer
  numberTrianglesNMoves1 n = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Integer -> Integer -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: Integer -> Integer -> String
  driver n expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME n) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (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;
  }