func PowerOfThree(num int) bool {
	for num > 0 {
		if num == 1 {
			return true
		}
		num /= 3
	}
	return false
}
// PowerOfThree checks if a number is a power of three
PowerOfThree checks if a number is a power of three
// PowerOfThree checks if a number is a power of three
func PowerOfThree(num int) bool {
	for num > 0 {
		if num == 1 {
			return true
		}
		num /= 3
	}
	return false
}
func PowerOfThree ( num int ) bool { for num > 0 { if num == 1 { return true } num /= 3 } return false }
PowerOfThree checks if a number is a power of three
PowerOfThree checks if a number is a power of three