import Control.Arrow
import Control.Monad
import Data.List
import qualified Data.ByteString.Char8 as B

main :: IO ()
main = readLine >>= print . solve 

solve :: [Int] -> Int
solve [k, a, b]
    | k <= a || b - a < 3 = k + 1
    | odd d = (n + 1) * (b - a) + a
    | otherwise = n * (b - a) + a + 1
    where
        d = k - a
        n = d `div` 2

readLine :: IO [Int]
readLine = unfoldr (\s -> second (maybe B.empty snd . B.uncons) <$> B.readInt s) <$> B.getLine

readContents :: Int -> IO [[Int]]
readContents = flip replicateM readLine