Jump to content

Recommended Posts

Posted

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...... :embarass::embarass:

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.