Jump to content
BrainDen.com - Brain Teasers


Popular Content

Showing content with the highest reputation since 02/21/17 in all areas

  1. 1 point
    Ten years ago I called attention to a number that when divided by a single integer p it left a remainder of p-1. (Help, a remainder is chasing me) Here is a chance to construct a nine-digit number, a permutation of { 1 2 3 4 5 6 7 8 9 } that has no remainders, sort of. The task is to permute { 1 2 3 4 5 6 7 8 9 } to create a number whose first n digits is a multiple of n for any single-digit n. For example, consider 123654987. Its first 2 digits (12) are divisible by 2. It's first 5 digits (12365) are divisible by 5. However this is not a solution, since 1236549 is not a multiple of 7.
  2. 1 point
    Use the twelve pieces on the left to create a chess board, The pieces may be flipped!
  3. 1 point
  4. 1 point
    Does the Indy trap appear even if it doesn't save anyone from actual death? Can they act on themselves? Do the goodie save and the Indy trap appear identically in the night post?
  5. 1 point
    Signups: 1. Gavinksong2. Flamebirde3. Nana774. plasmid5. phil18826. bonanova 7. aura8.9. 10.11.12 I've just moved, to Ohio, from NY and drowning in the details of it. Reluctant to pledging my attention here. But, I'll give it a shot ... Should be able to check in at least daily.
  6. 1 point
    If a box contains twenty-one coloured discs, composed of fifteen blue discs and six red discs, and two discs were taken at random, it can be seen that the probability of taking two blue discs, P(BB) = (15/21)×(14/20) = 1/2. The next such arrangement, for which there is exactly 50% chance of taking two blue discs at random, is a box containing eighty-five blue discs and thirty-five red discs. By finding the first arrangement to contain over 1012 = 1,000,000,000,000 discs in total, determine the number of blue discs that the box would contain.
  7. 1 point
  8. 1 point
    Sorry, something got lost in copying and pasting. The site does not like the formatting used in word, so I am attaching a picture of the solution ... apologies in advance.
  9. 1 point
    import java.util.*; public class lychrel { public static long palin(long n) { long m,p=0; while(n>0) { m=n%10; p=(p*10)+m; n=n/10; } return p; } public static void main(String ar[]) { long a,l,i,j=0,t,it=0; Scanner v=new Scanner(System.in); a=v.nextInt(); l=a+palin(a); t=palin(l); for(i=1;i<=10;i++) { it++; if(l==t) break; else { l=l+palin(l); t=palin(l); } if(i==4) j=l; } if(l!=t) { System.out.println(a+" is a Lychrel Number"); System.out.println("5th iteration of number "+a+" is "+j); } else System.out.println(it); } }
  10. 1 point
  11. 1 point
    Hopefully this one has not appeared before... Suppose 27 identical cubical chunks of cheese are piled together to form a cubical stack, as illustrated below. What is the maximum number of these cheese chunks through which a mouse of negligible size could munch before exiting the stack, assuming that the mouse always travels along the grid of 27 straight lines that pass through the centers of the chunks parallel or perpendicular to their sides, always makes a 90 degree turn at the center of each chunk it enters, and never enters any chunk more than once?
  12. 1 point
    We're being intruded by migrants secluded Who stowaway past our frontier They're costing us green and will linger unseen Unless I should get into gear Their nature I'll dredge as I perch on a ledge And twisting the truth's my endeavor Exposed to the nation, and next: deportation They thought they'd endure thus forever? I promise the answer has nothing to do with politics
  13. 1 point
    Hirk had to have been a goodie: baddie wouldn't target himself for a kill, and Indy can't be killed N1.
  14. 1 point
    Edit - double post, so I thought I'd take this time to post a dancing monkey gif. Enjoy.
  15. 1 point
    Can I be the one to own you Molly? Or be owned by you? Please
  16. 1 point
    Player A has one more coin than player B. Both players throw all of their coins simultaneously and observe the number that come up heads. Assuming all the coins are fair, what is the probability that A obtains more heads than B?
  17. 1 point
    (BR / BL +UR) UL Thus... (8/4 +2) 3= 12 (2/1 + 6) 4= 32 (9/3 +4) 2= 14 and for the last one.. (6/2 +3) 5 = 30
  18. 1 point
    On my phone, I see a link on each post that says "quote". I can sort of copy and paste the roster on phone but as I found out last game, the cursor had an unfortunate habit of moving... Spoilers and colors on phone have to be done with the [ ] codes. Spoiler: {spoiler}your text here{/spoiler} with [ ] instead of { }. No spoiler titles. Colors: {color=red/orange/whatever}text here{/color} also with [ ] instead of { }.
  19. 1 point
    @MissKitten Tagging does not work on mobile and quoting is hard on mobile as well. But other than that, on a PC, one can copy-paste colors and not bother with quoting the roster altogether. Which is cool. At least from a host's PoV.
  20. 1 point
  21. 1 point
    I think it's fair to say that the Coup of Rhotus is effectively dead for now; we're having enough trouble getting signups for a ten player game as is. Maybe once we build the player base a bit we can try to revive it, but for now I think it's rather unlikely. On the other hand, Forgotten Districts is in signups, and that's relatively close to getting off the ground!
  22. 1 point
    Roster: 1. maurice 2. Flamebirde 3. Molly Mae 4. 5. 6. Hirkala 7. bonanova 8. 9. 10. Roster: 1. maurice 2. Flamebirde 3. Molly Mae 4. 5. 6. Hirkala 7. bonanova 8. 9. 10. Mafia!!! Been too long! I don't know if I was supposed to leave it doubled, but I did. Hi, everyone!
  23. 1 point
  24. 1 point
    If it makes you feel any better, I had you and Molly as Germany and Russia before the mass outing. Thought bonanova sort of claimed Australia earlier but figured if the US killed him I'd be better off whether he was Australia or China. He seemed like the biggest threat to me with his day actions. If maurice had removed a vote besides flamebirde's, it would have been a tie and I wouldn't have even got the chance to use my RID kill. When I was first reading through, I didn't realize you were expecting me to kill Molly. Got a bit of a laugh from that. So the biggest thing the mass outing accomplished was it made sure you got China. If you had lynched fb, I would have RID killed maurice which would have been blocking. I did get really lucky with bonanova getting the UK lynched D1 so thanks for that. On another note, I came extremely close to not acting at all N2 to try to frame plasmid as Sweden. Might have given mo's claim more credibility with neither Sweden nor China showing... So now that I know asking won't get me killed, what's a PGP public key block? And where were those soft claims?
  25. 1 point
    Hey guys, sorry I'm here. Didn't realize I could talk when I was trapped and then I'm having issues accessing the site on my phone. I'm on through Firefox now and it works better than Chrome I guess. I will catch up at lunch and see what I can contribute, hopefully before the night ends in case I was mercy/mod killed.
  26. 1 point
    @Thalia, good points. I've played only a few Mafia games. I wish I had accepted Unreality's invite to play, back in the day, and learned it better. Coupled with a hope for a few more games to follow this one. My comfort zone is math and logic, where all the needed info is provided, just needing insight and clear thought. This is more fun, actually, and with experience I might get better. Or, I'm a very slippery guy and everything I just said is garbage. . When does the night end?
  27. 1 point
    @Thalia Understand, (with apologies to the players.) Hanlon's Razor. Seriously, what do we know about maurice?
  28. 1 point
    Taps watch. Oops. RIP MikeD. Would love to hear from maurice.
  29. 1 point
    Around World Series time recently, (that's the American baseball championships for our international Denizens) I asked the question, dressed as a probability puzzle, "Given that you could pick one of the best-of-seven games in the series that you could guaranty to win, which game would that be? I even flavored the question with the opinions of experts that the pivotal games are often taken to be game 3 or game 5, as statistically these games correlated well with the eventual winner. And many responded with one of those choices for their answers. But the correct answer of course is game 7. (Or as some said, the Last game.) So I also like the "one with the car" choice.
  30. 1 point
    I think phaze is right about the most practical answer. If that fails, I tend to agree with bonanova.
  31. 1 point
    Agree. When I hit the send button, I realized my thinking was too simple. But instead of deleting my post (moderator privilege) I left it to take its licks.
  32. 1 point
    I believe you replace the ? with digits.
  33. 1 point
  34. 1 point
    Also: http://projecteuler.net/problem=55
  35. 1 point
    Code: #include <iostream> #define BUF_SIZE 100 using namespace std; void putInArray(int num, int* buf){ for(int i=0;i<BUF_SIZE;i++){ buf[i] = num % 10; num = num / 10; } } bool isPalindrom(int* buf){ int i=0, j=BUF_SIZE-1; while(buf[j]==0 && j>0){ j--; } while(i<j){ if(buf[i] != buf[j]){ return false; } i++; j--; } return true; } void applyIteration(int* buf){ int i=0, j=BUF_SIZE-1; while(buf[j]==0 && j>0){ j--; } while(i<=j){ int temp = buf[i] + buf[j]; buf[i++] = temp; buf[j--] = temp; } for(int i=0;i<BUF_SIZE-1;i++){ buf[i+1] += buf[i] / 10; buf[i] = buf[i] % 10; } } bool isLychrel(int* buf){ for(int i=1;i<50;i++){ applyIteration(buf); if(isPalindrom(buf)){ return false; } } return true; } int main() { int buf[BUF_SIZE]; for(int num=0;num<10000;num++){ putInArray(num,buf); if(isLychrel(buf)){ cout << num << " is Lychrel " << endl; } } }
  36. 1 point
    Depends on what is meant by "have." [1] If have means "own," then yes. I can give someone something that I do not own. e.g. if I stole it. To give something, one only needs the ability to determine who controls it. If I control it, I can pass its control to someone else. So ... [2] If have means "possess the control of" then no. As stated, the paradox arises from the different antecedents of "with sorrow." Sorrow is the consequence of giving, not a possession before the act. But the language permits that interpretation by its form. Cute.
  37. -1 points
    havent you guys ever seen family guy? killing yourself if you go back in time doesn't mean you don't exist in the future, it just means that there's no longer 2 existences of yourself