What president served the two terms but not consecutively?
the answer to that question is Franklin Pierce.
What are the conditions a president of the United States can serve more than two termes consecutively?
Thomas Jefferson served four years as vice-president and two terms as President. No other president that served two full terms was ever vice-president. Theodore Roosevelt, Calvin Coolidge , Harry Truman and Lyndon Johnson all served at least two years as vice president, became President and then were elected to one term of their own, but none served two full terms as President. Franklin Roosevelt ran for vice president but was not elected.
Can a vice president replace a deceased president after having alredy served two terms as president?
No, he may not. To serve as vice president, one must be eligible to be president. The 22nd amendment to the Constitution of the United States prohibits presidents from serving more than two terms. Bill Clinton, for example, could not be Hillary Clinton's VP because he has already served two terms as president.