tagalog solving arithmetic sequence finding the first term