title: Find Whether Given Integer Power 3 Not
signature: findWhetherGivenIntegerPower3Not :: Integer -> Bool
  findWhetherGivenIntegerPower3Not 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 :: Bool -> Bool -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: Integer -> Bool -> String
  driver n expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME n) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver (1) (True) )
  
      printf "TEST-1...%s\n" (driver (3) (True) )
  
      printf "TEST-2...%s\n" (driver (27) (True) )
  
      printf "TEST-3...%s\n" (driver (9) (True) )
  
      printf "TEST-4...%s\n" (driver (-9) (True) )
  
      printf "TEST-5...%s\n" (driver (11) (False) )
  
      printf "TEST-6...%s\n" (driver (57) (False) )
  
      printf "TEST-7...%s\n" (driver (21) (False) )
  
      printf "TEST-8...%s\n" (driver (60) (False) )
  
      printf "TEST-9...%s\n" (driver (44) (False) )
  
source_py: def find_whether_given_integer_power_3_not(n):
      return ((1162261467 % n) == 0)
source_cpp: bool find_whether_given_integer_power_3_not(int n) {
    return 1162261467 % n == 0;
  }