求84到719之间所有5的倍数的整数之和。
已知
要求
我们需要求所有
解答
84和719之间,5的倍数的整数是 \( 85,90,95, \ldots, 715 \)。
这个数列是一个等差数列。
其中:
\( a=85 \) 且 \( d=90-85=5 \) \( l=715 \)
我们知道:
$l=a+(n-1) d$
$\Rightarrow 715=85+(n-1) \times 5$
$\Rightarrow 715=85+5n-5$
$\Rightarrow 715-80=5 n$
$\Rightarrow n=\frac{635}{5}=127$
$\therefore n=127$
$\mathrm{S}_{n}=\frac{n}{2}[2 a+(n-1) d]$
$=\frac{127}{2}[2 \times 85+(127-1) \times 5]$
$=\frac{127}{2}[170+126 \times 5]$
$=\frac{127}{2}(800)$
$=127 \times 400$
$=50800$
84到719之间所有5的倍数的整数之和是50800。
广告
数据结构
网络
关系数据库管理系统 (RDBMS)
操作系统
Java
iOS
HTML
CSS
Android
Python
C语言编程
C++
C#
MongoDB
MySQL
Javascript
PHP