Thursday, August 31, 2017

mathematics - A new PSE member with square reputation


A new Puzzling Stack Exchange member (reputation = 1) asked a good question.
He got a square number upvotes, and a square number downvotes.
(more Upvotes than Downvotes)
So, His reputation is a square number below 500.



Then he answered a question, and got good responses.
Again, he got a square number upvotes, and a square number downvotes.
(more Upvotes than Downvotes)
Again, his reputation now is a square number, but still not more than 500.


How many upvote and downvote he get after asking?
Then, How many upvote and downvote he get after answering?


Bonus Question : How if he answer first before asking?



Answer



In the beginning, when he asks he gets




64 upvotes and 16 downvotes ending up with 289 rep = 17$^2$ rep



and then after he answers the question, he gets



16 upvotes and 4 downvotes ending up with 441 rep = 21$^2$ rep



so we are done!! :)




For the Bonus:


After answering he gets




49 upvotes and 25 downvotes ending up with 441 rep = 21$^2$ rep



and then after asking he gets



9 upvotes and 1 downvote ending up with 484 rep = 22$^2$ rep





EDIT: HOW I FIGURED IT OUT




The riddle never said anything about having to use pencil and paper so I made an assumption and assumed that both numbers were less than 200. Then I wrote a short C++ program and tested all possibilities, ending up with both my answers. Total time taken: 4 min and 30 sec.



No comments:

Post a Comment

classical mechanics - Moment of a force about a given axis (Torque) - Scalar or vectorial?

I am studying Statics and saw that: The moment of a force about a given axis (or Torque) is defined by the equation: $M_X = (\vec r \times \...