This morning I asked a question on your behalf over at the Computer Science (CS) Meta. But, before continuing on to the answer, it's time for a little tough love1.
One thing that the moderator at CS (D.W.♦) pointed out, and that I'd like to emphasize here: Cross posting2 questions to multiple sites in the network is very much frowned upon. Doing so in quick succession is especially troublesome. It's rude to the users at each of the sites, not to give them each the best attempt at a question that you can muster. Please use some care in the future with how you go about it. If a question is closed at one site rather than being migrated, use that as an opportunity to re-evaluate the question and how it's being asked. Fix typos, grammar, formatting, and title before asking the new question.
Also, not every site in the Stack Exchange (SE) network is as ridiculously highly trafficked as Stack Overflow (SO) and Meta Stack Overflow (MSO). Sometimes an answer may take hours or even days to come. This network is not an instant answer factory, nor should it be.
Now that the meta part is out of the way, let's look at the question, using the answer from the CS Meta Question. Anyone interested only in the general case recommendations can feel free to skip this part.
The question as written is not a good fit for CS for several reasons.
The question is broadly about why a certain answer is being shown as correct in the answer key. Unless the person who wrote that answer is available, no one will be able to give you an authoritative answer. Or as D.W. puts it:
If you want to know why the answer-key-author thought 256 was the correct answer, then you need to ask them.
Questions asking, "is my answer correct?" are problematic. Quoting from this answer3:
If the attempt is wrong, good answers can be given, pointing out the mistake and proposing (hints for) fixes, [but] if the attempt is correct, nothing can be said but "yes, it's correct".
Another issue with this type of question is that they are rarely useful to future users. Consider the question "Does 2+2=4?" The only correct answer is "Yes." Only someone looking for confirmation that they added 2 and 2 correctly will ever find that question useful.4 Proof/provability questions are similarly difficult to answer in a way which is useful to others. (See Questions about correctness of a solution)
Taken at the most basic level the question is about the arithmetic, which is not really on-topic anywhere. (Not even on the mathematics-specific sites.)
Now time for the good news, if and only if you can reword your question to be more conceptual, then it would probably be acceptable. D.W. gives a couple good options, and you really should read the entire answer and spend some time considering it. For the sake of completeness, I'll share one of his possibilities.
I want to generate a global unique ID based on my IP address and a counter, and I'd like to maximize the time for a particular host's ID to wrap around. I am promised that my IP address will be unique. I have only 50 bits for my unique ID. How should I do this, to maximize the time until wrap-around? What's the optimal design, and what will the wrap-around time be?
Asking this way won't necessarily give you a direct answer to your original question, but, even better, it will give you the tools you need to solve similar problems for yourself in the future.
For the general case when deciding whether to post on CS: (Or when recommending CS to someone)
- As always use the help center as a first line of defense against off-topic.
- Practical and theoretical networking questions are welcome on CS. (Provided they fit within all of the other quality guidelines.)
- Conceptual questions are better than implementation questions. Don't ask a question like "How would I do X in python?" which will be read as "someone write this code for me, so I can go to the bar" regardless of how you mean it.
You should, to take D.W. slightly out of context,
diagnose gaps in [your] understanding, and then use that to help [you] write a question about the concept [you] are uncertain about.
If referring, as always, use your best judgement. Referring someone's question to a site where it will be quickly closed as off topic is unfair to the user, wastes everyone's time, and makes more noise here at meta for us to deal with. (The inevitable: "You guys are jerks, why did you tell me to ask on X if it's not allowed there?" followed by defacement, spiteful serial downvoting, ragequitting, and blog posts about how stupid everyone on SO is these days.)
1 Tough love: an expression used when someone treats another person harshly or sternly with the intent to help them in the long run. [From Wikipedia]
2 Cross posting: The copying of a post in part, or in whole to multiple sites. See also: Crossposting at Wikipedia†
3 The answer is written by another moderator at CS, Raphael♦. It is definitely worth a read, and will help you when deciding how to phrase questions anywhere.
4 The former close reason "Too Localized" was designed to fit this case.
5 Note: algorithm, not program
Disclaimer: These are my words, not those of D.W., Raphael or anyone else, except where quoted. While the answer I gave here is based in large part on the advice given to me at Computer Science, the opinions expressed, and the way they are expressed are solely my own. Furthermore, I am not an active user of CS, and I don't know all of their quality standards and possible edge cases.
Can't believe I managed to keep this under 500 800 1000 1500 words.
† What did we do before we could link to Wikipedia for everything? And before you ask, yes, this is a footnote in a footnote. :)