#include using namespace std; // ASCII art letter H int main() { int n; cout<<"Enter size: "; cin>>n; //Check is homework. Assume size >=5 and is odd for(int i=0 ; i> n; //go from 1 to the number. If a number didivdes n cleanly, it is a factor for(int i=1; i<=n; i++) if(n%i == 0) cout<>n; int sum=0, cur =1; //each power of 2 is the previous power of 2 multiplied by 2 for(int pow=0; pow<=n; pow++) { sum = sum + cur; cur = cur * 2; } cout<<"The sum is "<