Viết chương trình tính tổng \(\frac{2}{1.3}\)+\(\frac{2}{3.5}\)+\(\frac{2}{5.7}\)+.....+\(\frac{2}{n.\left(n+2\right)}\)
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.
<=>2-2/3+2/3-2/5........+2n-2n+2<2015/2016
<=>2-2n+2<2015/2016
=>n+2=1/2016
=>n=2014
\(\frac{2}{1.3}+\frac{2}{3.5}+\frac{2}{5.7}+......+\frac{2}{n\left(n+2\right)}\)<\(\frac{2015}{2016}\)
VT=\(1-\frac{1}{3}+\frac{1}{3}-\frac{1}{5}+\frac{1}{5}-\frac{1}{7}+....+\frac{1}{5}-\frac{1}{n+2}\)=\(1-\frac{1}{n+2}\)
Ta có:\(1-\frac{1}{n+2}=\frac{2015}{2016}\Rightarrow\)\(\frac{1}{n+2}=1-\frac{2015}{2016}\)
\(\Rightarrow\)\(\frac{1}{n+2}=\frac{1}{2016}=n+2=2016\)
\(\Rightarrow\)\(n=2014\)
Vậy\(n=2014\)
\(\frac{2}{1\cdot3}+\frac{2}{3\cdot5}+\frac{2}{5\cdot7}+...+\frac{2}{n\cdot\left(n+2\right)}<\frac{2003}{2004}\)
\(\Rightarrow1-\frac{1}{3}+\frac{1}{3}-\frac{1}{5}+\frac{1}{5}-\frac{1}{7}+...+\frac{1}{n}-\frac{1}{n+2}<\frac{2003}{2004}\)
\(\Rightarrow1-\frac{1}{n+2}<\frac{2003}{2004}\)
\(\Rightarrow\frac{1}{n+2}>\frac{1}{2004}\)
\(\Rightarrow n+2<2004\)
\(\Rightarrow n=2002\)
Đặt A = \(\frac{2}{1.3}+\frac{2}{3.5}+\frac{2}{5.7}+...+\frac{2}{n.\left(n+2\right)}\)
A=\(1-\frac{1}{3}+\frac{1}{3}-\frac{1}{5}+...+\frac{1}{n}-\frac{1}{n+2}\)
A = \(1-\frac{1}{n+2}\)
A= \(\frac{n+1}{n+2}\)=> Để A<2003/2004 thì \(\left(n+1\right).2004< \left(n+2\right).2003\)
\(\Leftrightarrow2004n+2004< 2003n+4006\)
\(\Leftrightarrow n< 2002\)
1/1-1/3+1/3-1/5+1/5-1/7+....+1/n-1/(n+2)
=1-1/(n+2)=(n+1)/(n+2)
Suy ra n =2001
a) =1-1/3+1/3-1/5+1/5-1/7+...+1/99-1/101
=1-1/101
=100/101
b) =(2/1.3+2/3.5+2/5.7+...+2/99.101).2,5
=(1-1/3+1/3-1/5+1/5-1/7+...+1/99-1/101).2,5
=(1-1/101).2,5
=100/101.2,5
=250/101
dấu / là phần nhé. bạn có thể xem bài có dấu phần ở : Câu hỏi của Nguyễn Thị Hoài Anh
A)\(\frac{2}{1.3}+\frac{2}{3.5}+\frac{2}{5.7}+...+\frac{2}{99.101}\)
=1-\(\frac{1}{3}+\frac{1}{3}-\frac{1}{5}+\frac{1}{5}-\frac{1}{7}+...+\frac{1}{99}-\frac{1}{101}\)
=1-\(\frac{1}{101}\)
=\(\frac{100}{101}\)
B) \(\frac{5}{1.3}+\frac{5}{3.5}+\frac{5}{5.7}+...+\frac{1}{99.101}\)
=5.(\(\frac{1}{1.3}+\frac{1}{3.5}+\frac{1}{5.7}+...+\frac{1}{99.101}\))
=5.\(\frac{2}{2}.\)(\(\frac{1}{1.3}+\frac{1}{3.5}+\frac{1}{5.7}+...+\frac{1}{99.101}\))
=5.\(\frac{1}{2}\).(\(\frac{2}{1.3}+\frac{2}{3.5}+\frac{2}{5.7}+...+\frac{1}{99.101}\))
=5.\(\frac{1}{2}\).(1-\(\frac{1}{3}\)+\(\frac{1}{3}-\frac{1}{5}+\frac{1}{5}-\frac{1}{7}+...+\frac{1}{99}-\frac{1}{101}\)
=5.\(\frac{1}{2}\).(1-\(\frac{1}{101}\))
=\(\frac{5}{2}.\frac{100}{101}=\frac{250}{100}\)
Chúc bạn học tốt
= 2 x [1 - 1/3 + 1/3 - 1/5 + 1/5 -1/7 +1/7 -1/9 + .., +1/99 - 1/101
= 2 x [ 1 - 1/101 ]
= 2 x 100/101
= 200/101
t cho mik nha
\(\frac{2}{1.3}\)+\(\frac{2}{3.5}\)+\(\frac{2}{5.7}\)+.........+\(\frac{2}{99.101}\)
=\(\frac{1}{1}\)-\(\frac{1}{3}\)+\(\frac{1}{3}\)-\(\frac{1}{5}\)+\(\frac{1}{5}\)-\(\frac{1}{7}\)+....+\(\frac{1}{99}\)-\(\frac{1}{101}\)
= 1 - \(\frac{1}{101}\)= \(\frac{100}{101}\)
\(\frac{2}{1.3}+\frac{2}{3.5}+...+\frac{2}{x\left(x+2\right)}=1-\frac{1}{3}+\frac{1}{3}-\frac{1}{5}+...+\frac{1}{x}-\frac{1}{x+2}\)
\(=1-\frac{1}{x+2}\frac{1}{2016}\Rightarrow x+2
Lời giải :
program hotrotinhoc ;
var T : real ;
i,n : integer ;
begin
write('n='); readln(n);
S:=0;
for i:= 1 to n do
if i mod 2=1 then
S:=S+2/(i*(i+2));
write('Tong la :',S);
readln
end.
uses crt;
var a:array[1..10000000] of longint;
i,n,d:longint;
s:real;
begin
clrscr;
write('Nhap n la ');readln(n);
for i:=1 to n do begin
if i mod 2<>0 then
s:=s+(2/(i*(i+2))); end;
write('Tong la ',s:0:2);
readln
end.