/* Chad Brewbaker March 2, 2003 circularArrayCount.cpp This program enumerates how many length N necklaces exist over an R letter alphabet where each bead is equal, or more than one away from it's neighbors. We do this by fixing the necklace at the color 0. We then grow the necklace by incramenting the number of color states that exist at each position. Example: Alphabet=0,1,2,3,4 0:1-> 0:1,2:1,3:1 -> 0:3,1:1,2:2,3:2,4:1 -> ... Where 0:1 means the zero state exists one time. With fixed beads: R*# of 0's Divide by N to get rid of rotations? */ #include #include long ARR[50]; long NEW_ARR[50]; long N; long R; void incArray() { long i,j; for(i=0;i> N; cout <<"\nInput r, the number of integers 1-r:\n"; cin >> R; if(N>50 || R>50) { cout << "Put in numbers smaller than 50.\n"; return 1; } cout <<"\nN:"<