Hãy tính tổng: A=1 + \(\dfrac{1}{2}+\dfrac{1}{3}\)+...+\(\dfrac{1}{20}\) trong turbo pascal
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.
A=(-1/4.5)+(-1/5.6)+(-1/6.7)+(-1/7.8)+(-1/8x9)+(-1/9.10)
A=(-1/4)-(-1/5)+(-1/5)-(-1/6)+(-1/6)-(-1/7)+(-1/7)-(-1/8)+(-1/8)-(-1/9)-(-1/9)+(-1/10)
A=(-1/4)-(-1/10)
A=-1/4+1/10
A=-3/20
a) \(1-\dfrac{1}{2}=\dfrac{1}{2}\)
\(\dfrac{1}{2}-\dfrac{1}{3}=\dfrac{3-2}{6}=\dfrac{1}{6}\)
\(\dfrac{1}{3}-\dfrac{1}{4}=\dfrac{4-3}{12}=\dfrac{1}{12}\)
\(\dfrac{1}{4}-\dfrac{1}{5}=\dfrac{5-4}{20}=\dfrac{1}{20}\)
\(\dfrac{1}{5}-\dfrac{1}{6}=\dfrac{6-5}{30}=\dfrac{1}{30}\)
b) \(\dfrac{1}{2}+\dfrac{1}{6}+\dfrac{1}{12}+\dfrac{1}{20}+\dfrac{1}{30}\)
\(=\left(1-\dfrac{1}{2}\right)+\left(\dfrac{1}{2}-\dfrac{1}{3}\right)+\left(\dfrac{1}{3}-\dfrac{1}{4}\right)+\left(\dfrac{1}{4}-\dfrac{1}{5}\right)+\left(\dfrac{1}{5}+\dfrac{1}{6}\right)\)
\(=1+\left(-\dfrac{1}{2}+\dfrac{1}{2}\right)+\left(-\dfrac{1}{3}+\dfrac{1}{3}\right)+\left(-\dfrac{1}{4}+\dfrac{1}{4}\right)+\left(-\dfrac{1}{5}+\dfrac{1}{5}\right)+-\dfrac{1}{6}\)\(=1+-\dfrac{1}{6}\)
\(=\dfrac{5}{6}\)
\(B=\dfrac{1}{2}+\dfrac{1}{6}+\dfrac{1}{12}+\dfrac{1}{20}+\dfrac{1}{30}+\dfrac{1}{42}\)
\(B=\dfrac{1}{1\cdot2}+\dfrac{1}{2\cdot3}+\dfrac{1}{3\cdot4}+\dfrac{1}{4\cdot5}+\dfrac{1}{5\cdot6}+\dfrac{1}{6\cdot7}\)
\(B=1-\dfrac{1}{2}+\dfrac{1}{2}-\dfrac{1}{3}+\dfrac{1}{3}-\dfrac{1}{4}+\dfrac{1}{4}-\dfrac{1}{5}+\dfrac{1}{5}-\dfrac{1}{6}+\dfrac{1}{6}-\dfrac{1}{7}\)
\(B=1-\dfrac{1}{7}\)
\(B=\dfrac{6}{7}\)
a)\(\frac{1}{1.3}+\frac{1}{3.5}+\frac{1}{5.7}+\frac{1}{7.9}+\frac{1}{9.11}\)
\(=\frac{1}{2}.\left(\frac{2}{1.3}+\frac{2}{3.5}+\frac{2}{5.7}+\frac{2}{7.9}+\frac{2}{9.11}\right)\)
\(=\frac{1}{2}.\left(\frac{3-1}{1.3}+\frac{5-3}{3.5}+\frac{7-5}{5.7}+\frac{9-7}{7.9}+\frac{11-9}{9.11}\right)\)
\(=\frac{1}{2}.\left(1-\frac{1}{3}+\frac{1}{3}-\frac{1}{5}+\frac{1}{5}-\frac{1}{7}+\frac{1}{7}-\frac{1}{9}+\frac{1}{9}-\frac{1}{11}\right)\)
\(=\frac{1}{2}.\left(1-\frac{1}{11}\right)\)
\(\frac{10}{22}\)
1) Ta có
\(C=\left(1-\dfrac{1}{2}\right)\left(1-\dfrac{1}{3}\right)\left(1-\dfrac{1}{4}\right)...\left(1-\dfrac{1}{2022}\right)\)
\(C=\dfrac{1}{2}.\dfrac{2}{3}.\dfrac{3}{4}...\dfrac{2021}{2022}\)
\(C=\dfrac{1}{2022}\)
2) \(A=\dfrac{1}{3}-\dfrac{2}{3^2}+\dfrac{3}{3^3}-\dfrac{4}{3^4}+...+\dfrac{99}{3^{99}}-\dfrac{100}{3^{100}}\)
\(\Rightarrow3A=1-\dfrac{2}{3}+\dfrac{3}{3^2}-\dfrac{4}{3^3}+...+\dfrac{99}{3^{98}}-\dfrac{100}{3^{99}}\)
\(\Rightarrow4A=A+3A\) \(=1-\dfrac{1}{3}+\dfrac{1}{3^2}-\dfrac{1}{3^3}+...-\dfrac{1}{3^{99}}-\dfrac{100}{3^{100}}\)
\(\Rightarrow12A=3.4A=3-1+\dfrac{1}{3}-\dfrac{1}{3^2}+...-\dfrac{1}{3^{98}}-\dfrac{100}{3^{99}}\)
\(\Rightarrow16A=12A+4A=\left(3-1+\dfrac{1}{3}-\dfrac{1}{3^2}+...-\dfrac{1}{3^{98}}-\dfrac{100}{3^{99}}\right)+\left(1-\dfrac{1}{3}+\dfrac{1}{3^2}-\dfrac{1}{3^3}+...-\dfrac{1}{3^{99}}-\dfrac{100}{3^{100}}\right)\)
\(=3-\dfrac{101}{3^{99}}-\dfrac{100}{3^{100}}\) \(< 3\). Từ đó suy ra \(A< \dfrac{3}{16}\)
a) Ta có: \(A=\left(1-\dfrac{1}{2}\right)\left(1-\dfrac{1}{3}\right)\left(1-\dfrac{1}{4}\right)\cdot...\cdot\left(1-\dfrac{1}{2014}\right)\left(1-\dfrac{1}{2015}\right)\left(1-\dfrac{1}{2016}\right)\)
\(=\dfrac{1}{2}\cdot\dfrac{2}{3}\cdot\dfrac{3}{4}\cdot...\cdot\dfrac{2013}{2014}\cdot\dfrac{2014}{2015}\cdot\dfrac{2015}{2016}\)
\(=\dfrac{1}{2016}\)
b) Ta có: \(\dfrac{x-2}{12}+\dfrac{x-2}{20}+\dfrac{x-2}{30}+\dfrac{x-2}{42}+\dfrac{x-2}{56}+\dfrac{x-2}{72}=\dfrac{16}{9}\)
\(\Leftrightarrow\left(x-2\right)\left(\dfrac{1}{12}+\dfrac{1}{20}+\dfrac{1}{30}+\dfrac{1}{42}+\dfrac{1}{56}+\dfrac{1}{72}\right)=\dfrac{16}{9}\)
\(\Leftrightarrow\left(x-2\right)\left(\dfrac{1}{3}-\dfrac{1}{4}+\dfrac{1}{4}-\dfrac{1}{5}+\dfrac{1}{5}-\dfrac{1}{6}+\dfrac{1}{6}-\dfrac{1}{7}+\dfrac{1}{7}-\dfrac{1}{8}+\dfrac{1}{8}-\dfrac{1}{9}\right)=\dfrac{16}{9}\)
\(\Leftrightarrow\left(x-2\right)\left(\dfrac{1}{3}-\dfrac{1}{9}\right)=\dfrac{16}{9}\)
\(\Leftrightarrow\left(x-2\right)\cdot\dfrac{2}{9}=\dfrac{16}{9}\)
\(\Leftrightarrow x-2=\dfrac{16}{9}:\dfrac{2}{9}=\dfrac{16}{9}\cdot\dfrac{9}{2}=8\)
hay x=10
Vậy: x=10
Câu C giải rồi
\(B=\dfrac{1}{5}+\dfrac{1}{20}+\dfrac{1}{44}+\dfrac{1}{77}+\dfrac{1}{119}+\dfrac{1}{170}+\dfrac{1}{230}+\dfrac{1}{299}\)
\(=2\left(\dfrac{1}{10}+\dfrac{1}{40}+\dfrac{1}{88}+\dfrac{1}{154}+\dfrac{1}{238}+\dfrac{1}{340}+\dfrac{1}{460}+\dfrac{1}{598}\right)\)
\(=\dfrac{2}{3}\left(\dfrac{3}{2.5}+\dfrac{3}{5.8}+\dfrac{3}{8.11}+\dfrac{3}{11.14}+\dfrac{3}{14.17}+\dfrac{3}{17.20}+\dfrac{3}{20.23}+\dfrac{3}{23.26}\right)\)
\(=\dfrac{2}{3}\left(\dfrac{1}{2}-\dfrac{1}{5}+\dfrac{1}{5}-\dfrac{1}{8}+...+\dfrac{1}{23}-\dfrac{1}{26}\right)\)
\(=\dfrac{2}{3}\left(\dfrac{1}{2}-\dfrac{1}{26}\right)=\dfrac{4}{13}\)
Bài 1:
uses crt;
var a:real;
i,n:integer;
begin
clrscr;
write('Nhap n='); readln(n);
a:=0;
i:=1;
while i<=n do
begin
a:=a+1/i;
i:=i+1;
end;
writeln(a:4:2);
readln;
end.
\(A=\dfrac{1}{3}+\dfrac{1}{3^2}+\dfrac{1}{3^3}+...+\dfrac{1}{3^{100}}\\ \Leftrightarrow3A=3\left(+\dfrac{1}{3^2}+\dfrac{1}{3^3}+...+\dfrac{1}{3^{100}}\right)\\ =1+\dfrac{1}{3}+\dfrac{1}{3^2}+...+\dfrac{1}{3^{99}}\)
Lấy 3A - A ta được
\(3A-A=\left(1+\dfrac{1}{3}+\dfrac{1}{3^2}+...+\dfrac{1}{3^{99}}\right)-\left(\dfrac{1}{3}+\dfrac{1}{3^2}+\dfrac{1}{3^3}+...+\dfrac{1}{3^{100}}\right)\\
2A=1-\dfrac{1}{3^{100}}\\
\Leftrightarrow A=\dfrac{1-\dfrac{1}{3^{100}}}{2}\)
program tinh_tong;
uses crt;
var i:integer;
t:real;
begin
clrscr;
t:=0;
for i:=1 to 20 do
t:=t + 1/i;
writeln('Tong la: ',t:4:2);
readln;
end.