Cm a2-a chia hết cho 2
Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
![](https://rs.olm.vn/images/avt/0.png?1311)
![](https://rs.olm.vn/images/avt/0.png?1311)
Bài 2.
\(a^3-a=a\left(a^2-1\right)=\left(a-1\right)a\left(a+1\right)⋮3\)
( 3 số nguyên liên tiếp chia hết cho 3)
\(P-\left(a_1+a_2+a_3+...+a_n\right)=\left(a_1^3-a_1\right)+\left(a_2^3-a_2\right)+...+\left(a_n^3-a_n\right)\) chia hết cho 3
=> P chia hết cho 3
![](https://rs.olm.vn/images/avt/0.png?1311)
Lời giải:
Sử dụng bổ đề: Một số chính phương $x^2$ khi chia 3 dư 0 hoặc 1.
Chứng minh:
Nêú $x$ chia hết cho $3$ thì $x^2\vdots 3$ (dư $0$)
Nếu $x$ không chia hết cho $3$. Khi đó $x=3k\pm 1$
$\Rightarrow x^2=(3k\pm 1)^2=9k^2\pm 6k+1$ chia $3$ dư $1$
Vậy ta có đpcm
-----------------------------
Áp dụng vào bài:
TH1: Nếu $a,b$ chia hết cho $3$ thì hiển nhiên $ab(a^2+2)(b^2+2)\vdots 9$
TH1: Nếu $a\vdots 3, b\not\vdots 3$
$\Rightarrow b^2$ chia $3$ dư $1$
$\Rightarrow b^2+3\vdots 3$
$\Rightarrow a(b^2+3)\vdots 9$
$\Rightarrow ab(a^2+3)(b^2+3)\vdots 9$
TH3: Nếu $a\not\vdots 3; b\vdots 3$
$\Rightarrow a^2$ chia $3$ dư $1$
$\Rightarrow a^2+2\vdots 3$
$\Rightarrow b(a^2+2)\vdots 9$
$\Rightarrow ab(a^2+2)(b^2+2)\vdots 9$
TH4: Nếu $a\not\vdots 3; b\not\vdots 3$
$\Rightarrow a^2, b^2$ chia $3$ dư $1$
$\Rightarrow a^2+2\vdots 3; b^2+2\vdots 3$
$\Rightarrow ab(a^2+2)(b^2+2)\vdots 9$
Từ các TH trên ta có đpcm.
![](https://rs.olm.vn/images/avt/0.png?1311)
![](https://rs.olm.vn/images/avt/0.png?1311)
\(A_1+A_2+A_3+...+A_{100}=2.2019\). Mà 2.2019 chia hết cho 2
\(\Rightarrow A_1+A_2+A_3+...+A_{100}⋮2\)
\(\Rightarrow A_1.2+A_2.2+A_3.2+...+A_{100}.2\)
\(=2.\left(A_1+A_2+A_3+...+A_{100}\right)⋮2\)
=> 2(A1+A2+A3+....+A100)
Mà 2 chia hết cho 2
=> 2(A1+A2+A3+....+A100) chia hết cho 2
=> A1.2+A2.2+A3.2+.…..+A100.2 chia hết cho 2(đpcm)
![](https://rs.olm.vn/images/avt/0.png?1311)
1.Gộp 3 số vào thành 1 tổng rồi tính:
(1+2^1+2^2)+(2^3+2^4+2^5)+....+(2^37+2^38+2^39)
=1*(1+2^1+2^2)+2^3*(1+2^1+2^2)+....+2^37*(1+2^1+2^2)
=1*15+2^3*15+...+2^37*15
=15*(1+2^3+...+2^39) chia hết cho 15
![](https://rs.olm.vn/images/avt/0.png?1311)
CMR; A1+A2+...+An chia hết cho 6 <=> A1^3+A2^3+...+An^3 chia hết cho 6
![](https://rs.olm.vn/images/avt/0.png?1311)
1:
#include <bits/stdc++.h>
using namespace std;
long long n,i,x;
int main()
{
cin>>n;
long long t=0;
for (i=1; i<=n; i++)
{
cin>>x;
t=t+x;
}
cout<<t;
return 0;
}
\(a^2-a=a\left(a-1\right)\)
Mà \(a\left(a-1\right)\)là hai số tự nhiên liên tiếp
Mà hai số tự nhiên liên tiếp luôn có 1 số chẵn và 1 số lẻ
\(\Rightarrow a\left(a-1\right)⋮2\)hay \(a^2-a⋮2\)