cuti3panda Posted August 31, 2004 Share Posted August 31, 2004 this problem is due on wedd. , i hope you guys will help me out with this.... In the cut "As" from Songs in the Key of Life, Stevie Wonder mentions the equation 8 x 8 x 8 x 8 = 4. Find all integers n for which this statement is true, molulo n. thanks alot for your help...... Link to comment Share on other sites More sharing options...
fuhrerkeebs Posted August 31, 2004 Share Posted August 31, 2004 Well, since x mod y = x-y*[x/y] ([] is the integer function), you know that n*[4096/n]=4092. This says that the only valid values are when n<=4092. Knowing this, I used by good ol' Qbasic to get all of the possible values for n. The equation holds only for values of n where n=6,11,12,22,31,33,44,62,66,93,124,132,186,341,372,682,1023,1364,2046, and 4092. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now