C ++ program to count number of arrays of size n such that every element is in range [ 1 , m ] and adjacen are divisible
#include <bits/stdc++.h> NEW_LINE #define MAX  1000 NEW_LINE using namespace std ; int numofArray ( int n , int m ) { int dp [ MAX ] [ MAX ] ;