Why isn't $(x+1)^p equiv_q x^p + 1$ if $q$ is a prime factor of $p$?Does $(x+1)^p not equiv_p x^p + 1$ for some $x$ hold if $p$ isn't prime?Counting fractions with $n$ digits in the numerator and denominatorIs there any known algorithm for factoring the fractional components of a binomial?Help proving $n choose k equiv 0 pmod n$ for all $k$ such that $0<k<n$ iff $n$ is prime.Every prime power $p^k$ that divides $binom2mm$ is smaller than or equal to $2m$Numbers Made From Concatenating Prime FactorizationsLucas' Theorem for $p$-adic integers?Prime dividing binomial coefficient involving prime powerShow that $(sqrt2+1)^n = sqrtm+sqrtm-1$ for some positive integer $m$Bounding a Sum of Prime PowersBinomial Coefficient divisibility involving Multiples

What Exploit Are These User Agents Trying to Use?

Is it possible to create a QR code using text?

Does int main() need a declaration on C++?

Knowledge-based authentication using Domain-driven Design in C#

What historical events would have to change in order to make 19th century "steampunk" technology possible?

Was the old ablative pronoun "med" or "mēd"?

How to remove border from elements in the last row?

OP Amp not amplifying audio signal

How to compactly explain secondary and tertiary characters without resorting to stereotypes?

Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?

Processor speed limited at 0.4 Ghz

How can I prove that a state of equilibrium is unstable?

how do we prove that a sum of two periods is still a period?

Can a virus destroy the BIOS of a modern computer?

Where would I need my direct neural interface to be implanted?

Ambiguity in the definition of entropy

Fair gambler's ruin problem intuition

Do Iron Man suits sport waste management systems?

Is there a hemisphere-neutral way of specifying a season?

How dangerous is XSS

How many wives did king shaul have

Why are UK visa biometrics appointments suspended at USCIS Application Support Centers?

What's the meaning of "Sollensaussagen"?

How to find if SQL server backup is encrypted with TDE without restoring the backup



Why isn't $(x+1)^p equiv_q x^p + 1$ if $q$ is a prime factor of $p$?


Does $(x+1)^p not equiv_p x^p + 1$ for some $x$ hold if $p$ isn't prime?Counting fractions with $n$ digits in the numerator and denominatorIs there any known algorithm for factoring the fractional components of a binomial?Help proving $n choose k equiv 0 pmod n$ for all $k$ such that $0<k<n$ iff $n$ is prime.Every prime power $p^k$ that divides $binom2mm$ is smaller than or equal to $2m$Numbers Made From Concatenating Prime FactorizationsLucas' Theorem for $p$-adic integers?Prime dividing binomial coefficient involving prime powerShow that $(sqrt2+1)^n = sqrtm+sqrtm-1$ for some positive integer $m$Bounding a Sum of Prime PowersBinomial Coefficient divisibility involving Multiples













1












$begingroup$


Using the Binomial Theorem $(x+1)^p$ can be written out as
$$
(x+1)^p = sum_k=0^p binompk x^k,.
$$

All that's left to show then is that, if $q$ is a proper prime factor of $p$, then one of $binomp1, dots, binompp-1$ isn't divisible by $q$. For that consider $binompq^t$ where $q^t$ is the biggest power of $q$ that occurs in $p$. This coefficient is
$$
binompq^t = fracp(p-1) cdots (p-q^t+1)q^t(q^t-1) cdots 1 = q bigg(q^t-1kfrac(p-1) cdots (p - q^t + 1)q^t(q^t-1) cdots 1 bigg)
$$

for some integer $k$. So, if we can just show that this big parenthesis doesn't work out to an integer, we're done. And I feel like there ought to be a quick way to finish the argument. But the only way I see to proceed is to painstakingly count the number of occurrences of $q$ in both the numerator and denominator and show that there aren't enough in the numerator to fully cancel the denominator. That's quite messy. Is there a more elegant maneuver?










share|cite|improve this question









$endgroup$











  • $begingroup$
    $binom63=20$. But it is not that it is going to be false every time, since $(x+1)^4=x^4 + 4 x^3 + 6 x^2 + 4 x + 1$ which is $x^4+1$ mod $2$.
    $endgroup$
    – user647486
    Mar 20 at 19:53











  • $begingroup$
    I'm sorry. I should've added that $q$ is one of at least two distinct prime factors.
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 21:03










  • $begingroup$
    @SebastianOberhoff my answer shows this can be true even when $p$ has distinct factors. For instance, try $q=5$, $p=5cdot49$.
    $endgroup$
    – Ethan MacBrough
    Mar 20 at 21:13










  • $begingroup$
    @SebastianOberhoff $3$ is one of the exactly two prime factors of $6$ and $3$ doesn't divide $binom63=20$.
    $endgroup$
    – user647486
    Mar 20 at 21:21






  • 1




    $begingroup$
    Such that you know. The notation $P(x)equiv_p Q(x)$ without quantifying the values of $x$ is used to denote congruence between polynomials. This is defined term-wise and not by the congruence of their values in, for example $mathbbZ$. They claim that EthanMacBrough made in the comment is only that $(x+1)^245-x^245-1$ vanishes at all elements of $mathbbF_5$. Not that this is the zero polynomial. Similarly the claim that he makes in the answer is not that for those choices of $p$ and $q$, $(x+1)^p-x^p-1$ is the zero polynomial mod $q$, but that it vanishes on $mathbbF_q$.
    $endgroup$
    – user647486
    Mar 21 at 0:15















1












$begingroup$


Using the Binomial Theorem $(x+1)^p$ can be written out as
$$
(x+1)^p = sum_k=0^p binompk x^k,.
$$

All that's left to show then is that, if $q$ is a proper prime factor of $p$, then one of $binomp1, dots, binompp-1$ isn't divisible by $q$. For that consider $binompq^t$ where $q^t$ is the biggest power of $q$ that occurs in $p$. This coefficient is
$$
binompq^t = fracp(p-1) cdots (p-q^t+1)q^t(q^t-1) cdots 1 = q bigg(q^t-1kfrac(p-1) cdots (p - q^t + 1)q^t(q^t-1) cdots 1 bigg)
$$

for some integer $k$. So, if we can just show that this big parenthesis doesn't work out to an integer, we're done. And I feel like there ought to be a quick way to finish the argument. But the only way I see to proceed is to painstakingly count the number of occurrences of $q$ in both the numerator and denominator and show that there aren't enough in the numerator to fully cancel the denominator. That's quite messy. Is there a more elegant maneuver?










share|cite|improve this question









$endgroup$











  • $begingroup$
    $binom63=20$. But it is not that it is going to be false every time, since $(x+1)^4=x^4 + 4 x^3 + 6 x^2 + 4 x + 1$ which is $x^4+1$ mod $2$.
    $endgroup$
    – user647486
    Mar 20 at 19:53











  • $begingroup$
    I'm sorry. I should've added that $q$ is one of at least two distinct prime factors.
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 21:03










  • $begingroup$
    @SebastianOberhoff my answer shows this can be true even when $p$ has distinct factors. For instance, try $q=5$, $p=5cdot49$.
    $endgroup$
    – Ethan MacBrough
    Mar 20 at 21:13










  • $begingroup$
    @SebastianOberhoff $3$ is one of the exactly two prime factors of $6$ and $3$ doesn't divide $binom63=20$.
    $endgroup$
    – user647486
    Mar 20 at 21:21






  • 1




    $begingroup$
    Such that you know. The notation $P(x)equiv_p Q(x)$ without quantifying the values of $x$ is used to denote congruence between polynomials. This is defined term-wise and not by the congruence of their values in, for example $mathbbZ$. They claim that EthanMacBrough made in the comment is only that $(x+1)^245-x^245-1$ vanishes at all elements of $mathbbF_5$. Not that this is the zero polynomial. Similarly the claim that he makes in the answer is not that for those choices of $p$ and $q$, $(x+1)^p-x^p-1$ is the zero polynomial mod $q$, but that it vanishes on $mathbbF_q$.
    $endgroup$
    – user647486
    Mar 21 at 0:15













1












1








1





$begingroup$


Using the Binomial Theorem $(x+1)^p$ can be written out as
$$
(x+1)^p = sum_k=0^p binompk x^k,.
$$

All that's left to show then is that, if $q$ is a proper prime factor of $p$, then one of $binomp1, dots, binompp-1$ isn't divisible by $q$. For that consider $binompq^t$ where $q^t$ is the biggest power of $q$ that occurs in $p$. This coefficient is
$$
binompq^t = fracp(p-1) cdots (p-q^t+1)q^t(q^t-1) cdots 1 = q bigg(q^t-1kfrac(p-1) cdots (p - q^t + 1)q^t(q^t-1) cdots 1 bigg)
$$

for some integer $k$. So, if we can just show that this big parenthesis doesn't work out to an integer, we're done. And I feel like there ought to be a quick way to finish the argument. But the only way I see to proceed is to painstakingly count the number of occurrences of $q$ in both the numerator and denominator and show that there aren't enough in the numerator to fully cancel the denominator. That's quite messy. Is there a more elegant maneuver?










share|cite|improve this question









$endgroup$




Using the Binomial Theorem $(x+1)^p$ can be written out as
$$
(x+1)^p = sum_k=0^p binompk x^k,.
$$

All that's left to show then is that, if $q$ is a proper prime factor of $p$, then one of $binomp1, dots, binompp-1$ isn't divisible by $q$. For that consider $binompq^t$ where $q^t$ is the biggest power of $q$ that occurs in $p$. This coefficient is
$$
binompq^t = fracp(p-1) cdots (p-q^t+1)q^t(q^t-1) cdots 1 = q bigg(q^t-1kfrac(p-1) cdots (p - q^t + 1)q^t(q^t-1) cdots 1 bigg)
$$

for some integer $k$. So, if we can just show that this big parenthesis doesn't work out to an integer, we're done. And I feel like there ought to be a quick way to finish the argument. But the only way I see to proceed is to painstakingly count the number of occurrences of $q$ in both the numerator and denominator and show that there aren't enough in the numerator to fully cancel the denominator. That's quite messy. Is there a more elegant maneuver?







number-theory prime-factorization






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Mar 20 at 19:45









Sebastian OberhoffSebastian Oberhoff

587311




587311











  • $begingroup$
    $binom63=20$. But it is not that it is going to be false every time, since $(x+1)^4=x^4 + 4 x^3 + 6 x^2 + 4 x + 1$ which is $x^4+1$ mod $2$.
    $endgroup$
    – user647486
    Mar 20 at 19:53











  • $begingroup$
    I'm sorry. I should've added that $q$ is one of at least two distinct prime factors.
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 21:03










  • $begingroup$
    @SebastianOberhoff my answer shows this can be true even when $p$ has distinct factors. For instance, try $q=5$, $p=5cdot49$.
    $endgroup$
    – Ethan MacBrough
    Mar 20 at 21:13










  • $begingroup$
    @SebastianOberhoff $3$ is one of the exactly two prime factors of $6$ and $3$ doesn't divide $binom63=20$.
    $endgroup$
    – user647486
    Mar 20 at 21:21






  • 1




    $begingroup$
    Such that you know. The notation $P(x)equiv_p Q(x)$ without quantifying the values of $x$ is used to denote congruence between polynomials. This is defined term-wise and not by the congruence of their values in, for example $mathbbZ$. They claim that EthanMacBrough made in the comment is only that $(x+1)^245-x^245-1$ vanishes at all elements of $mathbbF_5$. Not that this is the zero polynomial. Similarly the claim that he makes in the answer is not that for those choices of $p$ and $q$, $(x+1)^p-x^p-1$ is the zero polynomial mod $q$, but that it vanishes on $mathbbF_q$.
    $endgroup$
    – user647486
    Mar 21 at 0:15
















  • $begingroup$
    $binom63=20$. But it is not that it is going to be false every time, since $(x+1)^4=x^4 + 4 x^3 + 6 x^2 + 4 x + 1$ which is $x^4+1$ mod $2$.
    $endgroup$
    – user647486
    Mar 20 at 19:53











  • $begingroup$
    I'm sorry. I should've added that $q$ is one of at least two distinct prime factors.
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 21:03










  • $begingroup$
    @SebastianOberhoff my answer shows this can be true even when $p$ has distinct factors. For instance, try $q=5$, $p=5cdot49$.
    $endgroup$
    – Ethan MacBrough
    Mar 20 at 21:13










  • $begingroup$
    @SebastianOberhoff $3$ is one of the exactly two prime factors of $6$ and $3$ doesn't divide $binom63=20$.
    $endgroup$
    – user647486
    Mar 20 at 21:21






  • 1




    $begingroup$
    Such that you know. The notation $P(x)equiv_p Q(x)$ without quantifying the values of $x$ is used to denote congruence between polynomials. This is defined term-wise and not by the congruence of their values in, for example $mathbbZ$. They claim that EthanMacBrough made in the comment is only that $(x+1)^245-x^245-1$ vanishes at all elements of $mathbbF_5$. Not that this is the zero polynomial. Similarly the claim that he makes in the answer is not that for those choices of $p$ and $q$, $(x+1)^p-x^p-1$ is the zero polynomial mod $q$, but that it vanishes on $mathbbF_q$.
    $endgroup$
    – user647486
    Mar 21 at 0:15















$begingroup$
$binom63=20$. But it is not that it is going to be false every time, since $(x+1)^4=x^4 + 4 x^3 + 6 x^2 + 4 x + 1$ which is $x^4+1$ mod $2$.
$endgroup$
– user647486
Mar 20 at 19:53





$begingroup$
$binom63=20$. But it is not that it is going to be false every time, since $(x+1)^4=x^4 + 4 x^3 + 6 x^2 + 4 x + 1$ which is $x^4+1$ mod $2$.
$endgroup$
– user647486
Mar 20 at 19:53













$begingroup$
I'm sorry. I should've added that $q$ is one of at least two distinct prime factors.
$endgroup$
– Sebastian Oberhoff
Mar 20 at 21:03




$begingroup$
I'm sorry. I should've added that $q$ is one of at least two distinct prime factors.
$endgroup$
– Sebastian Oberhoff
Mar 20 at 21:03












$begingroup$
@SebastianOberhoff my answer shows this can be true even when $p$ has distinct factors. For instance, try $q=5$, $p=5cdot49$.
$endgroup$
– Ethan MacBrough
Mar 20 at 21:13




$begingroup$
@SebastianOberhoff my answer shows this can be true even when $p$ has distinct factors. For instance, try $q=5$, $p=5cdot49$.
$endgroup$
– Ethan MacBrough
Mar 20 at 21:13












$begingroup$
@SebastianOberhoff $3$ is one of the exactly two prime factors of $6$ and $3$ doesn't divide $binom63=20$.
$endgroup$
– user647486
Mar 20 at 21:21




$begingroup$
@SebastianOberhoff $3$ is one of the exactly two prime factors of $6$ and $3$ doesn't divide $binom63=20$.
$endgroup$
– user647486
Mar 20 at 21:21




1




1




$begingroup$
Such that you know. The notation $P(x)equiv_p Q(x)$ without quantifying the values of $x$ is used to denote congruence between polynomials. This is defined term-wise and not by the congruence of their values in, for example $mathbbZ$. They claim that EthanMacBrough made in the comment is only that $(x+1)^245-x^245-1$ vanishes at all elements of $mathbbF_5$. Not that this is the zero polynomial. Similarly the claim that he makes in the answer is not that for those choices of $p$ and $q$, $(x+1)^p-x^p-1$ is the zero polynomial mod $q$, but that it vanishes on $mathbbF_q$.
$endgroup$
– user647486
Mar 21 at 0:15




$begingroup$
Such that you know. The notation $P(x)equiv_p Q(x)$ without quantifying the values of $x$ is used to denote congruence between polynomials. This is defined term-wise and not by the congruence of their values in, for example $mathbbZ$. They claim that EthanMacBrough made in the comment is only that $(x+1)^245-x^245-1$ vanishes at all elements of $mathbbF_5$. Not that this is the zero polynomial. Similarly the claim that he makes in the answer is not that for those choices of $p$ and $q$, $(x+1)^p-x^p-1$ is the zero polynomial mod $q$, but that it vanishes on $mathbbF_q$.
$endgroup$
– user647486
Mar 21 at 0:15










1 Answer
1






active

oldest

votes


















2












$begingroup$

In general it may actually be the case that indeed $(x+1)^pequiv_q x^p+1$. As an example, take $q=3,p=9$.



In fact we can classify exactly which $p$ do this; it turns out that $(x+1)^pequiv_q x^p+1$ for all $x$ if and only if $p=q(qk-k+1)$ for some $k$.



To see why this is true, let $g$ be a primitive generator of $mathbbF_q^*$, i.e., $g^n=1$ iff $q-1|n$. Suppose $(x+1)^pequiv_qx^p+1$. By plugging in $x=1$ and using induction, this would imply that $x^pequiv_q x$ for all $x$, so $x^p-1equiv_q 1$. In particular, $g^p-1equiv_q 1$, so by definition $q-1|p-1$.



Writing out $p=qcdot m$, this means there exists some $n$ such that $n(q-1)=mq-1$. Then $(n+(q-1))(q-1) = (m+(q-2))q$. Since $q$ cannot divide $q-1$ and $q$ is prime, this means $q|n+q-1$, so $q|n-1$. Thus we can write $n=qk+1$, which gives $mq-1 = (qk+1)(q-1)$, so expanding out the terms gives $m=qk-k+1$.



Conversely, if $p$ can be written in this form, then since every element $xinmathbbF_q^*$ has order dividing $q-1$, we get $x^p=x^q(qk-k+1)equiv_q x^kx^-kxequiv_q x$, from which the stated equality immediately holds.




EDIT. To answer your other question of whether it is true that $binompq^tnotequiv_q 0$ where $q^tmid p$ but $q^t+1nmid p$: This can be proven as follows.



Let $m,n$ be arbitrary integers, and consider $binommnm=frac(mn)(mn-1)cdotsleft(mn-(m-1)right)m!$. We can remove a factor of $m$ from the top and bottom and are left with $binommnm=fracn(mn-1)cdotsleft(mn-(m-1)right)(m-1)!$. Now if $k$ is any factor of $m$ that divides $mn-j$ for some $j$, then $k$ must also divide $j$. Thus we can remove factors from the top and bottom until we're left with $binommnm=fracnpq$ where $mnmid p$. Thus if $m$ divides $binommnm$ it must also divide $n$.



Now substituting $m=q^t$ and $mn=p$ immediately gives the desired result, since $q^tmidbinompq^timplies q^tmidfracpq^timplies q^2tmid p$, contradicting maximality of $t$.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Do you think you could weigh in on a very similar question here: math.stackexchange.com/questions/3156116/… ?
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 23:28












Your Answer





StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3155923%2fwhy-isnt-x1p-equiv-q-xp-1-if-q-is-a-prime-factor-of-p%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2












$begingroup$

In general it may actually be the case that indeed $(x+1)^pequiv_q x^p+1$. As an example, take $q=3,p=9$.



In fact we can classify exactly which $p$ do this; it turns out that $(x+1)^pequiv_q x^p+1$ for all $x$ if and only if $p=q(qk-k+1)$ for some $k$.



To see why this is true, let $g$ be a primitive generator of $mathbbF_q^*$, i.e., $g^n=1$ iff $q-1|n$. Suppose $(x+1)^pequiv_qx^p+1$. By plugging in $x=1$ and using induction, this would imply that $x^pequiv_q x$ for all $x$, so $x^p-1equiv_q 1$. In particular, $g^p-1equiv_q 1$, so by definition $q-1|p-1$.



Writing out $p=qcdot m$, this means there exists some $n$ such that $n(q-1)=mq-1$. Then $(n+(q-1))(q-1) = (m+(q-2))q$. Since $q$ cannot divide $q-1$ and $q$ is prime, this means $q|n+q-1$, so $q|n-1$. Thus we can write $n=qk+1$, which gives $mq-1 = (qk+1)(q-1)$, so expanding out the terms gives $m=qk-k+1$.



Conversely, if $p$ can be written in this form, then since every element $xinmathbbF_q^*$ has order dividing $q-1$, we get $x^p=x^q(qk-k+1)equiv_q x^kx^-kxequiv_q x$, from which the stated equality immediately holds.




EDIT. To answer your other question of whether it is true that $binompq^tnotequiv_q 0$ where $q^tmid p$ but $q^t+1nmid p$: This can be proven as follows.



Let $m,n$ be arbitrary integers, and consider $binommnm=frac(mn)(mn-1)cdotsleft(mn-(m-1)right)m!$. We can remove a factor of $m$ from the top and bottom and are left with $binommnm=fracn(mn-1)cdotsleft(mn-(m-1)right)(m-1)!$. Now if $k$ is any factor of $m$ that divides $mn-j$ for some $j$, then $k$ must also divide $j$. Thus we can remove factors from the top and bottom until we're left with $binommnm=fracnpq$ where $mnmid p$. Thus if $m$ divides $binommnm$ it must also divide $n$.



Now substituting $m=q^t$ and $mn=p$ immediately gives the desired result, since $q^tmidbinompq^timplies q^tmidfracpq^timplies q^2tmid p$, contradicting maximality of $t$.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Do you think you could weigh in on a very similar question here: math.stackexchange.com/questions/3156116/… ?
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 23:28
















2












$begingroup$

In general it may actually be the case that indeed $(x+1)^pequiv_q x^p+1$. As an example, take $q=3,p=9$.



In fact we can classify exactly which $p$ do this; it turns out that $(x+1)^pequiv_q x^p+1$ for all $x$ if and only if $p=q(qk-k+1)$ for some $k$.



To see why this is true, let $g$ be a primitive generator of $mathbbF_q^*$, i.e., $g^n=1$ iff $q-1|n$. Suppose $(x+1)^pequiv_qx^p+1$. By plugging in $x=1$ and using induction, this would imply that $x^pequiv_q x$ for all $x$, so $x^p-1equiv_q 1$. In particular, $g^p-1equiv_q 1$, so by definition $q-1|p-1$.



Writing out $p=qcdot m$, this means there exists some $n$ such that $n(q-1)=mq-1$. Then $(n+(q-1))(q-1) = (m+(q-2))q$. Since $q$ cannot divide $q-1$ and $q$ is prime, this means $q|n+q-1$, so $q|n-1$. Thus we can write $n=qk+1$, which gives $mq-1 = (qk+1)(q-1)$, so expanding out the terms gives $m=qk-k+1$.



Conversely, if $p$ can be written in this form, then since every element $xinmathbbF_q^*$ has order dividing $q-1$, we get $x^p=x^q(qk-k+1)equiv_q x^kx^-kxequiv_q x$, from which the stated equality immediately holds.




EDIT. To answer your other question of whether it is true that $binompq^tnotequiv_q 0$ where $q^tmid p$ but $q^t+1nmid p$: This can be proven as follows.



Let $m,n$ be arbitrary integers, and consider $binommnm=frac(mn)(mn-1)cdotsleft(mn-(m-1)right)m!$. We can remove a factor of $m$ from the top and bottom and are left with $binommnm=fracn(mn-1)cdotsleft(mn-(m-1)right)(m-1)!$. Now if $k$ is any factor of $m$ that divides $mn-j$ for some $j$, then $k$ must also divide $j$. Thus we can remove factors from the top and bottom until we're left with $binommnm=fracnpq$ where $mnmid p$. Thus if $m$ divides $binommnm$ it must also divide $n$.



Now substituting $m=q^t$ and $mn=p$ immediately gives the desired result, since $q^tmidbinompq^timplies q^tmidfracpq^timplies q^2tmid p$, contradicting maximality of $t$.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Do you think you could weigh in on a very similar question here: math.stackexchange.com/questions/3156116/… ?
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 23:28














2












2








2





$begingroup$

In general it may actually be the case that indeed $(x+1)^pequiv_q x^p+1$. As an example, take $q=3,p=9$.



In fact we can classify exactly which $p$ do this; it turns out that $(x+1)^pequiv_q x^p+1$ for all $x$ if and only if $p=q(qk-k+1)$ for some $k$.



To see why this is true, let $g$ be a primitive generator of $mathbbF_q^*$, i.e., $g^n=1$ iff $q-1|n$. Suppose $(x+1)^pequiv_qx^p+1$. By plugging in $x=1$ and using induction, this would imply that $x^pequiv_q x$ for all $x$, so $x^p-1equiv_q 1$. In particular, $g^p-1equiv_q 1$, so by definition $q-1|p-1$.



Writing out $p=qcdot m$, this means there exists some $n$ such that $n(q-1)=mq-1$. Then $(n+(q-1))(q-1) = (m+(q-2))q$. Since $q$ cannot divide $q-1$ and $q$ is prime, this means $q|n+q-1$, so $q|n-1$. Thus we can write $n=qk+1$, which gives $mq-1 = (qk+1)(q-1)$, so expanding out the terms gives $m=qk-k+1$.



Conversely, if $p$ can be written in this form, then since every element $xinmathbbF_q^*$ has order dividing $q-1$, we get $x^p=x^q(qk-k+1)equiv_q x^kx^-kxequiv_q x$, from which the stated equality immediately holds.




EDIT. To answer your other question of whether it is true that $binompq^tnotequiv_q 0$ where $q^tmid p$ but $q^t+1nmid p$: This can be proven as follows.



Let $m,n$ be arbitrary integers, and consider $binommnm=frac(mn)(mn-1)cdotsleft(mn-(m-1)right)m!$. We can remove a factor of $m$ from the top and bottom and are left with $binommnm=fracn(mn-1)cdotsleft(mn-(m-1)right)(m-1)!$. Now if $k$ is any factor of $m$ that divides $mn-j$ for some $j$, then $k$ must also divide $j$. Thus we can remove factors from the top and bottom until we're left with $binommnm=fracnpq$ where $mnmid p$. Thus if $m$ divides $binommnm$ it must also divide $n$.



Now substituting $m=q^t$ and $mn=p$ immediately gives the desired result, since $q^tmidbinompq^timplies q^tmidfracpq^timplies q^2tmid p$, contradicting maximality of $t$.






share|cite|improve this answer











$endgroup$



In general it may actually be the case that indeed $(x+1)^pequiv_q x^p+1$. As an example, take $q=3,p=9$.



In fact we can classify exactly which $p$ do this; it turns out that $(x+1)^pequiv_q x^p+1$ for all $x$ if and only if $p=q(qk-k+1)$ for some $k$.



To see why this is true, let $g$ be a primitive generator of $mathbbF_q^*$, i.e., $g^n=1$ iff $q-1|n$. Suppose $(x+1)^pequiv_qx^p+1$. By plugging in $x=1$ and using induction, this would imply that $x^pequiv_q x$ for all $x$, so $x^p-1equiv_q 1$. In particular, $g^p-1equiv_q 1$, so by definition $q-1|p-1$.



Writing out $p=qcdot m$, this means there exists some $n$ such that $n(q-1)=mq-1$. Then $(n+(q-1))(q-1) = (m+(q-2))q$. Since $q$ cannot divide $q-1$ and $q$ is prime, this means $q|n+q-1$, so $q|n-1$. Thus we can write $n=qk+1$, which gives $mq-1 = (qk+1)(q-1)$, so expanding out the terms gives $m=qk-k+1$.



Conversely, if $p$ can be written in this form, then since every element $xinmathbbF_q^*$ has order dividing $q-1$, we get $x^p=x^q(qk-k+1)equiv_q x^kx^-kxequiv_q x$, from which the stated equality immediately holds.




EDIT. To answer your other question of whether it is true that $binompq^tnotequiv_q 0$ where $q^tmid p$ but $q^t+1nmid p$: This can be proven as follows.



Let $m,n$ be arbitrary integers, and consider $binommnm=frac(mn)(mn-1)cdotsleft(mn-(m-1)right)m!$. We can remove a factor of $m$ from the top and bottom and are left with $binommnm=fracn(mn-1)cdotsleft(mn-(m-1)right)(m-1)!$. Now if $k$ is any factor of $m$ that divides $mn-j$ for some $j$, then $k$ must also divide $j$. Thus we can remove factors from the top and bottom until we're left with $binommnm=fracnpq$ where $mnmid p$. Thus if $m$ divides $binommnm$ it must also divide $n$.



Now substituting $m=q^t$ and $mn=p$ immediately gives the desired result, since $q^tmidbinompq^timplies q^tmidfracpq^timplies q^2tmid p$, contradicting maximality of $t$.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Mar 20 at 22:54

























answered Mar 20 at 20:24









Ethan MacBroughEthan MacBrough

1,241617




1,241617











  • $begingroup$
    Do you think you could weigh in on a very similar question here: math.stackexchange.com/questions/3156116/… ?
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 23:28

















  • $begingroup$
    Do you think you could weigh in on a very similar question here: math.stackexchange.com/questions/3156116/… ?
    $endgroup$
    – Sebastian Oberhoff
    Mar 20 at 23:28
















$begingroup$
Do you think you could weigh in on a very similar question here: math.stackexchange.com/questions/3156116/… ?
$endgroup$
– Sebastian Oberhoff
Mar 20 at 23:28





$begingroup$
Do you think you could weigh in on a very similar question here: math.stackexchange.com/questions/3156116/… ?
$endgroup$
– Sebastian Oberhoff
Mar 20 at 23:28


















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3155923%2fwhy-isnt-x1p-equiv-q-xp-1-if-q-is-a-prime-factor-of-p%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye

random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer