We have to prove that $a^{2^n} +1\mid a^{2^m}-1$ when $m&gt;n$.  What I've done: I considered the two cases when $a= 2k$ and when $a= 2k+1$.
I've been struggling with this all day today. I imagine it's not very hard, but my algebra skills are terrible. So, how can I show that if $m&gt;n$ and $a$ is a positive integer, then $$a^{2^n}+1 \mid a^{2^m}-1.$$ I just can't get a coherent picture of what I'm supposed to do. If this too (see yesterday's question) boils down to the Unique Factorization Theorem, I would be very grateful for any intuition on how to think about this!
Settings API enable default settings on theme install? I am still learning settings API so please forgive my noob question. I have three fields: a checkbox, colorpicker and text field (they are working), but I would like to do this: when the theme is installed add "checked" state to my checkbox but allow user to "unchecked" it ,and if empty add default color to my colorpicker... I have no idea how to do this so please help me!  My code looks like this now (thanks to @Chip Bennett! ) :  &lt;?php add_action('admin_menu','create_theme_options_page'); function create_theme_options_page(){ add_options_page('Theme Options','Theme Options','administrator',__FILE__,'build_options_page'); }    function build_options_page(){    ?&gt;    &lt;div id="theme-options-wrap"&gt;    &lt;div style="float:left;margin-top:19px;position:absolute;" class="icon32" id="icon-tools"&gt;&lt;br/&gt;&lt;/div&gt;    &lt;h2&gt;My options page&lt;/h2&gt;    &lt;form method="post" action="options.php"&gt;    &lt;?php settings_fields('plugin_options');?&gt;    &lt;?php do_settings_sections(__FILE__); ?&gt;    &lt;p class="submit"&gt;    &lt;input name="Submit" type="submit" class="button-primary" value="&lt;?php esc_attr_e('Save changes');?&gt;"/&gt;    &lt;/p&gt;    &lt;/form&gt;    &lt;/div&gt;    &lt;?php    }       add_action('admin_init','register_and_build_fields');      function register_and_build_fields(){      register_setting('plugin_options','plugin_options','validate_setting');      add_settings_section('main_section','&lt;br/&gt;&lt;br/&gt;Main Settings','section_cb',__FILE__);      add_settings_field('banner_heading','Banner Heading:','banner_heading_setting',__FILE__,'main_section');      add_settings_field('display_sidebar','Display Sidebar:','display_sidebar_setting',__FILE__,'main_section');      add_settings_field('display_colorpicker','Display Colorpicker:','display_colorpicker_setting',__FILE__,'main_section');      }        //Install Iris colorpicker        add_action( 'admin_enqueue_scripts', 'mw_enqueue_color_picker' );        function mw_enqueue_color_picker( $hook_suffix ) {        // first check that $hook_suffix is appropriate for your admin page        wp_enqueue_style( 'wp-color-picker' );        wp_enqueue_script( 'my-script-handle', get_template_directory_uri() . '/js/my-script.js', array( 'wp-color-picker' ), false, true );        }           //Colorpicker          //Now how to add a default color on theme install?          function display_colorpicker_setting(){          $options = get_option('plugin_options');          echo"&lt;input type='text' id='color1' name='plugin_options[display_colorpicker]' value='{$options['display_colorpicker']}'/&gt;";          }            //Sidebar checkbox           //Now how to add a default state "checked" on theme install?           function display_sidebar_setting(){           $options = get_option('plugin_options');           echo "&lt;input type='checkbox' name='plugin_options[display_sidebar]' {$options['display_sidebar']} id='display_sidebar' /&gt;";           }              //Banner Heading             function banner_heading_setting(){             $options = get_option('plugin_options');             echo "&lt;input name='plugin_options[banner_heading]' type='text' value='{$options['banner_heading']}'/&gt;";             }               //Validate our settings here               function validate_setting($plugin_options){                  return $plugin_options;               }                 function section_cb(){                } ?&gt; When should I use "shall" versus "will"? Which is the correct use of these two words, and in which context should one be used rather than the other? A word to describe "work that is ready to be done" Should I include a link to my Stack Overflow profile on my résumé? Algorithm to return all combinations of k elements from n I want to write a function that takes an array of letters as an argument and a number of those letters to select.   Say you provide an array of 8 letters and want to select 3 letters from that. Then you should get:  8! / ((8 - 3)! * 3!) = 56   Arrays (or words) in return consisting of 3 letters each. I have got this problem on limits  $$ \lim_{x \rightarrow 0}\left(\frac{\sin(x)}{x}\right)^\frac{1}{x^2}$$ What I am doing here is that taking log and then applying L-Hospital's Rule $$y= \lim_{x \rightarrow 0}\left(\frac{\sin(x)}{x}\right)^\frac{1}{x^2} $$ then $$\ln(y)=\lim_{x \rightarrow 0} \frac{1}{x^2}\ln\left(\frac{\sin(x)}{x}\right)$$ now it becomes $\frac{0}{0}$ type , but problem is how to take derivative here? when differentiating $\ln\left(\frac{\sin(x)}{x}\right)$ it will become $\frac{x}{\sin(x)}$ then we'll have to differentiate one more time like we do in case of $f(f(x))$ ? $\sin(x)$ and $x$ will be separately differentiated or together ? How do you transpose tensors? We transpose a matrix $A$ by replacing $A_{ij}$ with $A_{ji}$, for all $i$ and $j$.  However, in case $A$ has more than two dimensions (that is, it is a tensor), I don't know how to apply the transpose operation.   If A has dimensions $3\times 3 \times 8$, then what will replace $A_{ijk}$?  If $A$ has shape $3\times 3\times 8\times 8$, then what will replace $A_{ijkl}$? Finding a tricky limit I have a homework in real analysis and I'm very confused about it. I would be very thankful, if you could give me any ideas or solutions how to get this task done. The task is as follows:     Find the limit:   $$\lim_{x\to 0} \frac{1}{x} \int_{0}^{x} (1+ \sin(t))^{1/t} dt.$$   A hint that has been given is to use L'Hospital's Rule. Moreover, it must be substantiated why we can use L'Hospital' Rule in this situation. It is also important to mention that $(1 + \sin(t))$ has a removable point of discontinuity at $0$ and therefore the integral can be interpreted as a Riemann integral. How can I prove $\sqrt{2} ^{\sqrt{2}}$ is irrational? If $E$ is a connected space, then so is $\overline{E}$. I have to prove that if $E$ is a connected space, then so is $\overline{E}$ (the closure of $E$) a connected space. I tried to prove the contrapositive. So suppose that $\overline{E}$ is not connected in a metric space $X$. This implies there are $A\subset X$ and $B\subset X$ such that $A\cap B=\emptyset$, $A\cap \overline{E}\neq \emptyset$, $B\cap \overline{E}\neq \emptyset$ and $\overline{E}\subset A\cup B$. I will try to prove that this $A$ and $B$ will also work for $E$. Suppose that $A\cap E=\emptyset$ and $B\cap E=\emptyset$, this implies that $A\cup B$ is a subset of the limit points of $E$, because $A\cap \overline{E}\neq \emptyset$ and $B\cap \overline{E}\neq \emptyset$. This contradicts the fact that $\overline{E}\subset A\cup B$, so we have to conclude that $A\cap E\neq \emptyset\neq B\cap E$. Since $E\subset\overline{E}\subset A\cup B$, we have that $E$ is also not connected.  My question is whether my proof is correct, because I have a little bit doubt. If it's not correct, what is the best I can do? Thanks in advance!   Edit1: The definition we use for a connected space $E$ in a metric space $X$ is that if $E$ is connected, then there are no open $A,B\subset X$ such that $A\cap B=\emptyset$, $A\cap E\neq \emptyset\neq B\cap E$ and $E\subset A\cup B$.  Edit2: $A$ and $B$ must be open. I want to simplify the following:  $\sum_{n=0}^x 1 - (1 - I[a \ne 0] * I[a \ge b]) * (1 - I[b \ne 0] * I[b \ge c]) * (1 - I[c \ne 0] * I[c \ge d]) * (1 - I[d = 0])$ How to remove blank lines from a file (including tab and spaces)? I want to remove all empty lines from a file. Even if the line contains spaces or tabs it should also be removed. Exercise from Atiyah-Macdonald, Chapter 1, 2.iv) Let $A$ be a ring and let $A[x]$ be the ring of polynomials in an indeterminate $x,$ with coefficients in $A.$ Let $f=a_0 + a_1x+\cdots+a_nx^n \in A[x].$ $f$ is said to be primitive if $(a_0,a_1,\ldots,a_n)=(1).$     Prove that if $f,g\in A[x],$ then $f$ and $g$ are primitive $\Rightarrow$ $fg$ is primitive.   I know Gauss lemma holds true for UFDs, but in this case it isn't required $A$ to be UFD: is it possible to drop the assumption, or is some hypothesis missing here? Textarea CSS issue on "needs moderator attention" To reproduce:   Click Flag (question or answer) Click other (needs moderator attention)   The textarea is too wide:  StackOverflow        AskUbuntu        StackExchange        Most probably affects other sites, but didn't check. I think it's enough. :-)  Reproducing on:   Chromium Version 40.0.2214.111 Ubuntu 15.04 (64-bit) Google Chrome Version 41.0.2272.76 (64-bit) Firefox 36.0   (I'm using Ubuntu 15.04) This is the problem I am currently having trouble with:  If $\lambda_1$ and $\lambda_2$ are eigenvalues of matrix  $$         \begin{bmatrix}         a &amp; b\\         c &amp; d\\         \end{bmatrix}$$prove that $\lambda_1^2$, $\lambda_1\lambda_2$ and $\lambda_2^2$ are eigenvalues of matrix $A$.     $$A=\begin{bmatrix}     a^2 &amp; ab &amp; b^2\\     2ac &amp; ad+bc &amp;2bd\\     c^2 &amp; cd &amp;d^2\\     \end{bmatrix}$$  What have I considered so far:   I tried to find characteristic polynomial of first matrix and then find the roots which would be $\lambda_1$ and $\lambda_2$. I was hoping I can make a connection with characteristic polynomial of matrix $A$, but it got too complicated and did not seem like the right idea. Since there are two eigenvalues for first matrix, there are two eigenvectors. I thought about somehow using $A\vec v_i=\lambda_i\vec v_i$, where $i=1,2$  Also, I thought about finding a connection between these two matrices. What I see is that the sum of elements of first and second column, of first matrix, are $(a+c)$ and $(b+d)$, respectively.  Sum of first, second and third column of matrix $A$ are $(a+c)^2, (a+c)(b+d)$ and $(b+d)^2$. Now, if I could assign $\lambda_1$ and $\lambda_2$ to $(a+c)$ and $(b+d)$, then I would get that sum of first, second and third column of matrix $A$ are $\lambda_1^2$, $\lambda_1\lambda_2$ and $\lambda_2^2$, but what would be next?   I thought it would be good to combine 2. and 3rd idea, but I am not making any progress.  I appreciate any help. Show hidden files on Mac OS X Mojave using Terminal To see my /etc folder I've tried this command in Terminal:  sudo chflags nohidden /etc   followed by:  sudo defaults write com.apple.Finder AppleShowAllFiles true; killall Finder   also tried:  sudo defaults write com.apple.Finder AppleShowAllFiles YES; killall Finder   Neither of them seemed to work. Solving the matrix equation $AP=PB$, where $A$ and $B$ are similar Currently I'm stuck with this problem:     The following matrices are similar to each other.      $$A=\begin{bmatrix}-3&amp;0\\8&amp;4\end{bmatrix},\qquad B=\begin{bmatrix}-4&amp;4\\-2&amp;5\end{bmatrix},\qquad C=\begin{bmatrix}k&amp;1\\m&amp;-2\end{bmatrix}.$$      How do you find the matrix $P$ such that $AP = PB$?       And how can you calculate the values of $k$ and $m$?      Thank you in advance. How do I choose between "as to", "on", "of", and "about"? Why Does Software Updater Say No updates Available, but apt-get upgrade Shows updates available? Creation timestamp and last update timestamp with Hibernate and MySQL For a certain Hibernate entity we have a requirement to store its creation time and the last time it was updated.  How would you design this?   What data types would you use in the database (assuming MySQL, possibly in a different timezone that the JVM)?  Will the data types be timezone-aware? What data types would you use in Java (Date, Calendar, long, ...)? Whom would you make responsible for setting the timestamps&mdash;the database, the ORM framework (Hibernate), or the application programmer? What annotations would you use for the mapping (e.g. @Temporal)?   I'm not only looking for a working solution, but for a safe and well-designed solution.