public static void main(String args[]){
        int input[] = {1,7,10,13,16,19,22};
        ArithmeticProgressionSearch aps = new ArithmeticProgressionSearch();
        System.out.println(aps.search(input));
    }
http://www.careercup.com/question?id=4798365246160896
src/com/interview/binarysearch/ArithmeticProgressionSearch.java