Which of the following numbers will replace the question mark (?) in the given series? 7, 7, 9, 27, 31, 155,?