Simple Number Theory Proof, Again

AI Thread Summary
The discussion focuses on proving that the square of any integer takes the form of 4k or 4k+1. Two cases are presented: for even integers (2k), the square is 4k, while for odd integers (2k+1), the square expands to 4k^2 + 4k + 1, which can be rewritten to fit the form 4k+1. Participants point out errors in the initial attempts, emphasizing the need for clarity in expressions and the use of parentheses. Additionally, a simpler approach using modular arithmetic is suggested, confirming that all cases (n mod 4) yield the required results. The conversation highlights the importance of clear mathematical proof structure and the potential for simplification.
nastygoalie89
Messages
17
Reaction score
0
Alright, having problems with this question too. It seems to be the same type of number theory problem, which is the problem.

Homework Statement


Prove "The square of any integer has the form 4k or 4k+1 for some integer k.


Homework Equations



definition of even= 2k
definition of odd= 2k+1

The Attempt at a Solution



Basically I have: Case 1. 2k(2k) = 4k
Case 2. 2k+1(2k+1) = 4k2+4k+1 = 4k+1(k+1)

Not sure if it's correct. Do I need to use different indices? I feel I am missing something. Thanks for any help!
 
Physics news on Phys.org
nastygoalie89 said:
Alright, having problems with this question too. It seems to be the same type of number theory problem, which is the problem.

Homework Statement


Prove "The square of any integer has the form 4k or 4k+1 for some integer k.


Homework Equations



definition of even= 2k
definition of odd= 2k+1

The Attempt at a Solution



Basically I have: Case 1. 2k(2k) = 4k
Case 2. 2k+1(2k+1) = 4k2+4k+1 = 4k+1(k+1)

Not sure if it's correct. Do I need to use different indices? I feel I am missing something. Thanks for any help!
For case 1, (2k)(2k) != 4k
For case 2, you need parentheses.
(2k + 1)(2k + 1) = 4k2 + 4k + 1 != 4k + 1(k + 1)

Your last expression above is equal to 5k + 1, which is different from (2k + 1)(2k + 1).
 
You've expanded it yet you factorised it? it will be taking you back to what you got initially. you should have changed your 4m^{2}+4m+1 into 4(m^{2}+m)+1 and explain that it is similar to the form 4k+1 .
 
Even though this is my first post on Physics Forums and this was done a year ago, I'm going to tell everyone you've made it way too complicated. I'm a pretty new mathematician, and I feel this isn't in the spirit of a proof, but it still works.

Take the case n^2.
if n==0 (mod 4), n^2 will also be congruent to 0 modulo 4. Check.
if n==1, 1^2 will also be congruent to 1 modulo 4. Check.
if n==2, 2^2=4 and 4 modulo 4 == 0. Check.
if n==3, 3^3=9, 9==1 modulo 4. Check.

That's all the cases.
 
The only difference is that you have "hidden" the complications under the name "mod". That's fine if the person knows about modular arithmetic but the proof originally given is much simpler in that it does not use modular aritymetic.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top