Function to return the count of sequences of length K having aint terms divisible by its preceding term
static int countSeq ( int N , int K ) { int i , j , k ; int dp [ ] [ ] = new int [ 109 ] [ 109 ] ; for ( i = 1 ; i <= N ; i ++ ) {