×

# Prove that square of an integer is always of the form 3k or 3k+1 but never of the form 3k+2

I need help with this question.

[ Can someone tell that where can I find the solution manual for this book - Introduction to Number Theory By Ivan Niven And Hugh Montgomery - Some questions are really tough in this book]

Note by Kishlaya Jaiswal
4 years, 6 months ago

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold
- bulleted- list
• bulleted
• list
1. numbered2. list
1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in $$...$$ or $...$ to ensure proper formatting.
2 \times 3 $$2 \times 3$$
2^{34} $$2^{34}$$
a_{i-1} $$a_{i-1}$$
\frac{2}{3} $$\frac{2}{3}$$
\sqrt{2} $$\sqrt{2}$$
\sum_{i=1}^3 $$\sum_{i=1}^3$$
\sin \theta $$\sin \theta$$
\boxed{123} $$\boxed{123}$$

Sort by:

$$x\equiv0,1,2(mod3), x^{2}\equiv0,1,4(mod 3), \Rightarrow x^{2}\equiv0,1,1(mod3).$$ As 0 and 1 occurs in the last step but 2 does not,Hence proved...

- 4 years, 6 months ago

You can divide the entire integer set into three parts: numbers that can be written as 3n , 3n+1 or 3n + 2. (3n)² = 9n² = 3 * 3n² = 3k. (3n + 1)² = 9n² + 6n + 1 = 3(3n² + 2n) + 1 = 3k + 1. And (3n + 2)² = 9n² + 12n + 3 + 1 = 3(3n² + 4n + 1) + 1 = 3k + 1.

- 4 years, 6 months ago

Induction can be used along with cases.

- 4 years, 6 months ago

its solution is present in the excursion

- 4 years, 6 months ago

Use Euclid's division lemma.

- 4 years, 6 months ago