1.Cho n>0, nếu n<=0 thì yêu cầu nhập lại n. Viết chương trình tính tổng các số tự nhiên chẵn bé hơn hoặc bằng n
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.


Ta có: \(x^2-5x+3⋮x-5\)
=>\(x\left(x-5\right)+3⋮x-5\)
=>\(3⋮x-5\)
=>\(x-5\in\left\{1;-1;3;-3\right\}\)

Nếu ko áp dụng chương trình khuyến mãi thì 2 cuốn sách đó có giá là:
125000 x 2 = 250000 (đồng)
Số tiền Mai cần trả là:
250000 - 30000 = 220000 (đồng)

\(2Al+6HCl\rightarrow2AlCl_3+3H_2\)
x 3x x 1,5x
\(Fe+2HCl\rightarrow FeCl_2+H_2\)
y 2y y y
số mol khí H2 là: \(n=\dfrac{V}{22,4}=\dfrac{19,832}{22,4}=0,885\left(mol\right)\)
vì cả 2 phản ứng đều tạo ra khí H2 nên ta có:
1,5x + y = 0,885 (1)
khối lượng của 2 kim loại là 22g nên ta có:
27x + 56y = 22 (2)
từ (1) và (2) ta có hệ phương trình:
\(\left\{{}\begin{matrix}1,5x+y=0,885\\27x+56y=22\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}x\approx0,2\left(mol\right)\\y\approx0,3\left(mol\right)\end{matrix}\right.\)
khối lượng của Al là: \(m_{Al}=n_{Al}\cdot M_{Al}=0,2\cdot27=5,4\left(g\right)\)
khối lượng Fe là: \(m_{Fe}=n_{Fe}\cdot M_{Fe}=0,3\cdot56=16,8\left(g\right)\)
thành phần phần trăm của Al là:
\(\%m_{Al}=\dfrac{m_{Al}}{m_{hh}}\cdot100\%=\dfrac{5,4}{22}\cdot100\%=24,55\%\)
thành phần phần trăm của Fe là:
100% - 24,55% = 75,45%
số mol H2 là: 3 x 0,2 + 2 x 0,3 = 1,2 (mol)
khối lượng HCl đã dùng là:
\(m_{HCl}=n_{HCl}\cdot M_{HCl}=1,2\cdot36,5=43,8\left(g\right)\)

Bài 2:
a: (2x-1)(2y+1)=35
=>\(\left(2x-1;2y+1\right)\in\left\{\left(1;35\right);\left(35;1\right);\left(-1;-35\right);\left(-35;-1\right)\right\}\)
=>\(\left(x;y\right)\in\left\{\left(1;17\right);\left(18;0\right);\left(0;-18\right);\left(-17;-1\right)\right\}\)
b: (5x+2)(y-3)=14
=>\(\left(5x+2;y-3\right)\in\){(1;14);(14;1);(-1;-14);(-14;-1);(2;7);(7;2);(-2;-7);(-7;-2)}
=>(x;y)\(\in\left\{\left(-\dfrac{1}{5};17\right);\left(\dfrac{12}{5};4\right);\left(-\dfrac{3}{5};-11\right);\left(-\dfrac{16}{5};2\right);\left(0;10\right);\left(1;5\right);\left(-\dfrac{4}{5};-4\right);\left(-\dfrac{9}{5};1\right)\right\}\)
mà x,y nguyên
nên \(\left(x;y\right)\in\left\{\left(0;10\right);\left(1;5\right)\right\}\)
c: y-6x+2xy=10
=>2xy-6x+y=10
=>2x(y-3)+y-3=7
=>(2x+1)(y-3)=7
=>\(\left(2x+1;y-3\right)\in\left\{\left(1;7\right);\left(7;1\right);\left(-1;-7\right);\left(-7;-1\right)\right\}\)
=>\(\left(x;y\right)\in\left\{\left(0;10\right);\left(2;4\right);\left(-1;-4\right);\left(-4;2\right)\right\}\)
Bài 1:
a: \(15-3\left(2x-1\right)=-12\)
=>3(2x-1)=15+12=27
=>2x-1=9
=>2x=10
=>x=5
b: \(4\left(3x+2\right)-17=27\)
=>4(3x+2)=27+17=44
=>3x+2=11
=>3x=9
=>x=3
c: \(18-3\left(2x+1\right)^2=-57\cdot2\)
=>\(3\left(2x+1\right)^2=18+57\cdot2=132\)
=>\(\left(2x+1\right)^2=\dfrac{132}{3}=44\)
=>\(\left[{}\begin{matrix}2x+1=2\sqrt{11}\\2x+1=-2\sqrt{11}\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=\dfrac{2\sqrt{11}-1}{2}\left(loại\right)\\x=\dfrac{-2\sqrt{11}-1}{2}\left(loại\right)\end{matrix}\right.\)
d: \(\left(3x-2\right)\cdot3-7\cdot\left(-8\right)=120\)
=>\(3\left(3x-2\right)+56=120\)
=>3(3x-2)=120-56=120-20-36=100-36=64
=>\(3x-2=\dfrac{64}{3}\)
=>\(3x=\dfrac{64}{3}+2=\dfrac{70}{3}\)
=>\(x=\dfrac{70}{9}\)
e: \(\left(25-x^2\right)\left(x+3\right)=0\)
=>\(\left[{}\begin{matrix}25-x^2=0\\x+3=0\end{matrix}\right.\)
=>\(\left[{}\begin{matrix}x^2=25\\x=-3\end{matrix}\right.\)
=>\(\left[{}\begin{matrix}x=5\\x=-5\\x=-3\end{matrix}\right.\)
f: Sửa đề: \(\left(x+3\right)^5=\left(x+3\right)^3\)
=>\(\left(x+3\right)^5-\left(x+3\right)^3=0\)
=>\(\left(x+3\right)^3\cdot\left[\left(x+3\right)^2-1\right]=0\)
=>\(\left(x+3\right)\left(x+3+1\right)\left(x+3-1\right)=0\)
=>(x+3)(x+4)(x+2)=0
=>\(\left[{}\begin{matrix}x+3=0\\x+4=0\\x+2=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=-3\\x=-4\\x=-2\end{matrix}\right.\)
g: Sửa đề: \(\left(2x-1\right)^7=27\left(2x-1\right)^4\)
=>\(\left(2x-1\right)^7-27\cdot\left(2x-1\right)^4=0\)
=>\(\left(2x-1\right)^4\cdot\left[\left(2x-1\right)^3-1\right]=0\)
=>\(\left[{}\begin{matrix}\left(2x-1\right)^4=0\\\left(2x-1\right)^3-1=0\end{matrix}\right.\)
=>\(\left[{}\begin{matrix}2x-1=0\\2x-1=1\end{matrix}\right.\)
=>\(\left[{}\begin{matrix}x=\dfrac{1}{2}\\x=1\end{matrix}\right.\)
a; 15 - 3.(2\(x\) - 1) = - 12
3.(2\(x-1\)) = 15 - (-12)
3.(2\(x\) - 1) = 27
2\(x-1\) = 27 : 3
2\(x\) - 1 = 9
2\(x\) = 9 + 1
2\(x\) = 10
\(x=10:2\)
\(x=5\)
Vậy \(x=5\)
b; 4.(3\(x+2\)) - 17 = 27
4.(3\(x\) + 2) = 27 + 17
4.(3\(x\) + 2) = 44
3\(x\) + 2 = 44 : 4
3\(x\) + 2 = 11
3\(x\) = 11 - 2
3\(x\) = 9
\(x\) = 9 : 3
\(x=3\)
Vậy \(x=3\)

bptt : nhân hóa
giải thích : vì con ong làm gì biết yêu hoa , nó được nhân cách hóa có đặc điểm giống như con người

Số dân của xã năm 2009 là:
\(10000\times\left(1+2\%\right)=10200\left(người\right)\)
Số dân của xã năm 2010 là:
\(10200\times\left(1+2\%\right)=10404\left(người\right)\)

Số ngôi sao Nam gấp được là:
\(\dfrac{\left(30+24\right)}{2}=\dfrac{54}{2}=27\)(ngôi sao)
3 lần số ngôi sao Hải gấp được là:
30+24+27-3x4=81-12=69(ngôi sao)
Số ngôi sao Hải gấp được là:
69:3=23(ngôi sao)
#include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);cout.tie(nullptr);
int a;
cin>>a;
if(a<=0){
cout<<"Yeu cau nhap lai a:";
}else{
int sum = 0;
for(int i =2; i<=a;i++){
if(i%2==0) sum+=i;
}
cout<<sum<<endl;
}
return 0;
}