How does one determine whether or not the infinite series $$\sum_{n=1}^\infty \sin^n(n)$$ converges? I suspect that it doesn't converge absolutely, but I have no idea how to prove/disprove convergence or prove/disprove absolute convergence. Help?
Does the sequence $\{\sin^n(n)\}$ converge?   Does the series $\sum\limits_{n=1}^\infty \sin^n(n)$ converge?
I've noticed in the last couple of days that there have been a few occasions when there's been a sudden surge of questions in the SO "Reopen" review queue.  Normally there's either no questions at all to reopen or at most three or four, and that's still the case, except that for the last couple of days I've gone to the review page and seen about fifty-odd questions in the queue, where just moments before there had been none.  I've gone through the reviews and the questions themselves seem reasonably legitimate (including the occasional audit), so I'm not questioning that... it just seems odd that there would be so many more than usual all of a sudden, and that they'd all appear at once.  Anyone got any insights, or should I just chalk this down as "one of those things"? Let $A$ be a complex matrix such that $A^n = I$, show that $A$ is diagonalisable.  How do I do this?    I would hazard a guess that since $A^n = I$ that means that $A^n$ is obvious diagonal, and I suppose that a diagonal matrix can only be formed by the square of another diagonal matrix, but I am not sure if that is the case. Also I think this neglects the complex cases.  Is there a Jordan block argument that I should use? My wife is an Indian national with an Indian passport. She holds an indefinite leave to remain in the UK (permanent residence card). Does she need to apply for a Schengen visa before travelling to France or any other Schengen countries? I cheated on the Disciplined badge, how bad is it? I was looking for badges I didn't have yet, and I saw the Disciplined badge. So I deleted an answer of mine with 3+ votes, and waited. Five minutes later, sweet, a new badge! Then I went to my answer again, and undeleted it. No problem at all, and I keep the badge!   What will happen? Will my badge stay here or not? More generally, what happens when the conditions to get a badge are valid at one time, and then not valid?  Other badge in this case:   Unsung hero - "Zero score accepted answers: more than 10 and 25% of total"   What happens if answers get a vote after getting the badge? Are the badge frequently recalculated? Formal Languages - Regular Expression I've been battling the following two questions for more than a day today.  Write a regular expression (comprised of {a, b}) that contain at least two b and do not contain abb. Write a regular expression (comprised of {a, b}) that contain abba and do not contain baa.  For the first part I wrote a basic one to start off with that doesn't handle the must two-b: b* OR a* OR (a+ AND b)* OR a*  I ran a few &quot;truth tables&quot; inputs over it and it seems ok. But the moment I add the requirement, things go haywire. Mostly because when pushing in those &quot;b&quot;s, you can suddenly use the OR to break things up. Same thing on the second one.... Any help would be greatly appreciated! Norah When does a complex matrix have a square root? What is the neccessary and sufficient condition for a matri$A \in C^{n  \times n}$ so that it has a "square root" , that is there is a matrix $B \in C^{n \times n}$ such that $A=B^2$.  I am not quite sure but I was thinking that it would be that A and B are similar. How do you end with a single quote followed by a double quote? I have a paragraph as follows:  ``This is a quote. `Here is a quote within a quote.'''   But the formatting works out to be a double quote (") followed by a single quote (') instead of the other way around. How can I solve this problem? The script works fine if I run it with sh filename, but it ignores all the --exclude parameters if its run by cron:  #!/bin/sh TIMESTAMP=$(date +%u)  WEEK=`date +"%V"` if [ $(($WEEK%2)) -eq 0 ]; then     echo "even";     BACKUP_DIR="/mnt/backup/2_$TIMESTAMP"     mkdir -p "$BACKUP_DIR/www"  else     echo "odd";     BACKUP_DIR="/mnt/backup/1_$TIMESTAMP"     mkdir -p "$BACKUP_DIR/www"   fi  if [ $(date +%u) -gt 6 ]; then     zip -r -y $BACKUP_DIR/www/web.zip /var/www/ --exclude='var/www/\.opcache/*' --exclude='var/www/utils/phpThumb/cache/*' else     zip -r -y $BACKUP_DIR/www/web.zip /var/www/ --exclude='var/www/mycompany/files/*' --exclude='var/www/\.opcache/*' --exclude='var/www/mycompany/szamlazz/xml_szamlak/*' --exclude='var/www/mycompany/files_admin/szamlazz/*' --exclude='var/www/mycompany/files_admin/chatFiles/*' --exclude='var/www/mycompany/utils/phpThumb/cache/*' --exclude='*/backup-guard/*' --exclude='var/www/mycompany/mailer/*' --exclude='var/www/mycompany/attachments/*' fi  exit 0   The above script should create a larger backup on sunday, and a partial on weekdays, but it just zips everything. Why do we use the object instead of the subject pronoun in constructions like "stupid me"? I'm trying to find out how come we say lucky me and stupid us rather than lucky I and stupid we. My understanding is that this is not a recent invention, but a relic from the distant past where it was a dative construction. However, I don't see the reason for using any case other than the nominative in this construction to begin with.        He went surfing. → Lucky him went surfing.   I got pulled over. → Stupid me got pulled over.   They bought a house. → Thoughtless them bought a house.      This is rather intriguing. After thinking about it for a while, I couldn't come up with any other language, Germanic or otherwise, where simply introducing an adjective would dictate a change of grammatical case. This appears to be an English peculiarity. How far can it be traced back? Can anyone comment on its background? I need to prove that:      if a linear operator $\phi : V \rightarrow V$ on a vector space is nilpotent, then its only eigenvalue is $0$.   I know how to prove that this for a nilpotent matrix, but I'm not sure in the case of an operator. How would I be able to relate $\phi$ to a matrix?  Note: A nilpotent operator $\phi$ has been defined as an operator that satisfies $\phi^{n} = 0$ for some $n \geq 1$. E2099 Overflow in conversion or arithmetic operation Linux determines the type of a file via a code in the file-header. It doesn't depend on file-extensions for to know which software is to use for opening the file.  That's what I remember from my education. Please correct me in case I'm wrong!  Working a bit with Ubuntu systems recently: I see a lot of files on the systems which have extensions like .sh, .txt, .o, .c  Now I'm wondering: Are these extensions are meant only for humans? So that one should get an idea what kind of file it is?  Or does they have some purpose for the operating-system too? How to decide if an effect is magical for Magic Resistance? Some creatures have Magic Resistance:     The [...] has advantage on saving throws against spells and other magical effects.   We know from  that this works against Turn Undead, but does it work against Stunning Strike, Death Strike, Fey Presence, etc? How do we decide? Down Arrow Key is not working Purchasing a Switch - AC vs DC Current Specifications? I'm trying to purchase several switches for a DC system with moderately low current (a few amps at 12V). When browsing for switches in parts catalogs (e.g.  and ) there are always separate voltage ratings for AC and DC applications. I understand that AC switches are less expensive because the switching time does not need to be as fast and arcing is less of a concern. There is only one current rating listed and I am not sure if it applies to AC switching, DC switching, or both.  Does this current rating apply to both the rated AC and DC voltages? Is there a good rule-of-thumb for converting between AC and DC voltage/current ratings? What is the highest current I could reasonably expect from a DC switch before moving to a relay? I need to prove that the language $\mathscr L=\{0^n \big|\text{n is the square of a natural number}\}$ is non regular using the pumping lemma   My try:  $\mathscr L=\{\overbrace{\epsilon}^{0^2},\overbrace{0}^{1^2},\overbrace{0000}^{2^2},\overbrace{000000000}^{3^2},\overbrace{0000000000000000}^{4^2},\dots\}$  Suppose that $\mathscr L$ is regular so $\exists$ a word '$x$' with length of at least $n$   $|x|\geq n $ such that  $(1)\,\,\,|uv|\leq n$  $(2)\,\,\,|v|\geq 1$  $(3)\,\,\,uv^iw \in \mathscr L$  Now, let as choose the word $\color{blue}{x=0^{n^2}}$  $|x|\geq n$ so we can use $(1)-(3)$  $x=\underbrace{000000\dots}_{n^2\text{ times}}$  $x=uv0^kw=\underbrace{uv0^k}_{\text{n zeros   }}\overbrace{w}^{n^2-n\text{ zeros }}$  Let as choose $\color{blue}{i=??}$      I'm difficult choosing the word '$\color{blue}x$' and choosing  $\color{blue}i$ to come to contradiction with the lemma I know this issue has been addressed before with different software, but how do I do it with Shapely?  I have a polygon with a very small gap on the interior of the shape:    Here is a close up:    The polygon is valid so I can't use the buffer trick, and simplifying the polygon also doesn't work. How to enable automatic update in wordpress running on IIS7 and Windows 2008? I have a dedicated server using Windows 2008 and IIS7 running 5 blogs with Wordpress. I can't use the autoupdate feature of the wordpress neither the automatic plugin instalation.  I believe I must set writing permissions in some temporary folder, the question is which one. Do you have any idea? Explode string into array with no empty elements? PHP's explode function returns an array of strings split on some provided substring. It will return empty strings when there are leading, trailing, or consecutive delimiters, like this: var_dump(explode('/', '1/2//3/')); array(5) {   [0]=&gt;   string(1) &quot;1&quot;   [1]=&gt;   string(1) &quot;2&quot;   [2]=&gt;   string(0) &quot;&quot;   [3]=&gt;   string(1) &quot;3&quot;   [4]=&gt;   string(0) &quot;&quot; }  Is there some different function or option or anything that would return everything except the empty strings? var_dump(different_explode('/', '1/2//3/')); array(3) {   [0]=&gt;   string(1) &quot;1&quot;   [1]=&gt;   string(1) &quot;2&quot;   [2]=&gt;   string(1) &quot;3&quot; } How to know current name of the database in Django?