Collatz sequence of a number
Project Euler Question 14 (Collatz Problem)
Where do I find the current C or C++ standard documents? For many questions the answer seems to be found in "the standard". However, where do we find that? Preferably online.  Googling can sometimes feel futile, again especially for the C standards, since they are drowned in the flood of discussions on programming forums.  To get this started, since these are the ones I am searching for right now, where are there good online resources for:   C89 C99 C11 C++98 C++03 C++11 C++14 C++17 Why are you not able to declare a class as static in Java? Question list on Stack Overflow is not showing new question What does "...from nonmagical attacks not made with silvered weapons" mean? I'm sure your first thought is, that's perfectly clear.  Unfortunately my group who aren't normally rules lawyers disagree.  Party encounters a  (MM p.211).  It has:     Damage Immunities: bludgeoning, piercing, and slashing from nonmagical   attacks not made with silvered weapons.   My reading of that is if the weapon has to be magical and silvered to hurt it.  So a +1 silver dagger will hurt it, but a +1 regular dagger or a +0 silver dagger won't.  The group's interpretation was that all three of those weapons would hurt and only a +0 regular dagger would be ineffective.    I would also note my interpretation would mean something like blade barrier would also not harm it since you could argue they're magical blades but nothing indicates that they're silvered.    This also appears to be the same wording for some undead so I'm not looking for a lycanthrope specific interpretation but something general for every time that wording is used.    Thanks in advance. I came across this example when trying to mount a usb device inside a openvz container and I have never seen the construct in the second line before. Can you explain what it signifies?  #!/bin/bash . /etc/vz/vz.conf I have 3 fields ( Exposed filter ) 1 Country 2 State 3 City  When a respective Country is selected in the 1st field, I want the second filter ( Dropdown or autocompete ) to display states of the country selected in the 1st field &amp; when this is done based on the state selection , I want the 3rd field to show only the cities belonging to the state selected in the second field.  How can this be done ? any help ? Are there rules for falling in water vs. diving vs. just jumping in for various depths of water? Recently, I read in the journal  that Stephen Hawking wrote a paper claiming that black holes do not exist.  How is this possible? Please explain it to me because I didn't understand what he said.  References:   Article in Nature News:  (Zeeya Merali, January 24, 2014). S. Hawking, Information Preservation and Weather Forecasting for Black Holes, . Shuffle an array with python, randomize array item order with python What's the easiest way to shuffle an array with python? How are these AES MixColumn multiplication tables calculated? I'm using the mul2, mul3, mul9, mul11, mul13 and mul14 tables for the MixColumn and InvMixColumn steps in AES-128. However, I got these off some Github repository, and now I'm looking for an actual source explaining how these were calculated and so on.  I cannot find anything proper on Google, can anyone help me out? Equal standard errors for all levels of a categorical factor in lmer I have a question about the standard error of mixed model parameters estimated using the lmerTest package.  I have 12 sites with 6 treatments over each site. I measured a response variable (biomass_of_insects) (which has a Gaussian distribution).   library (lmerTest)   model &lt;- lmer(biomass_of_insects ~ as.factor(treatments) + (1 | sites))   However, the model summary shows the same standard error for every treatment (see below: 114.065). Why is the standard error always the same?   Fixed effects:                                Estimate    Std.err      df       t        p (Intercept)             501.333     80.656  66.000   6.216 3.91e-08 *** as.factor(treat)F       126.667    114.065  66.000   1.110    0.271  as.factor(treat)I        -8.333    114.065  66.000  -0.073    0.942      as.factor(treat)I+F1/3  -75.000    114.065  66.000  -0.658    0.513    as.factor(treat)I+F2/3   18.333    114.065  66.000   0.161    0.873     as.factor(treat)I+F3/3   15.917    114.065  66.000   0.140    0.889 Are there any disadvantages to using your companions for transporting Power Armor Set the maximum character length of a UITextField How can I set the maximum amount of characters in a UITextField on the iPhone SDK when I load up a UIView? What would be an English equivalent for the Mexican Spanish word tocayo? In Mexican Spanish (not sure if other Spanish speaking countries use the word too) we call "tocayo" to those people that share the same name as us (but not necessarily the same last name i.e., Juan Gonzalez and Juan Carlos Castillo are tocayos).  I was wondering if an equivalent for this word exists at all in English or maybe even an expression? How can you describe someone who gives up too easily? After an AJAX request, sometimes my application may return an empty object, like:  var a = {};   How can I check whether that's the case? A word for "intimate friends" without any kind of romance? I'm looking for a word to describe that a particular situation where two people (a man and a woman) are probably the best of friends but have no romantic inclinations towards each other. They may invade each others thoughts periodically but aren't really in a relationship per se. What would be a good word to describe this?  I'm aware of "platonic" but am wondering if there is another word? Meta-analysis of means and medians in R? I've been asked to review the literature for all studies that estimate the mean and median Blood Lead Level (BLL) in a certain country, and then perform a meta-analysis to come up with one overall value for the mean and median level.   Is such a thing typically done? I'm not interested in any "effect size," just a univariate measure.   I'd like to create a forest plot and do some of the standard tests of heterogeneity across studies. Is there a package and function in R that will allow me to do a meta-analysis of mean and median BLLs?  Just to clarify, this would be a separate meta-analysis for means, and a separate meta-analysis for medians. How to text-to-speech output using command-line? How to get speech output from entered text by using command-line?  Also facility to change speech rate, pitch, volume etc using simple command. bcmwl-kernel-source broken on kernel: 5.8.0-34-generic