当前位置:网站首页>转载:等比数列的求和公式,及其推导过程
转载:等比数列的求和公式,及其推导过程
2022-07-04 09:35:00 【LaoYuanPython】
本文转自:等比数列的求和公式,及其推导过程
一、等比数列的定义
如果一个数列从第二项起,每一项与它的前一项的比都等于同一个常数,那么这个数列叫做等比数列(geometric progression)。这个常数叫做等比数列的公比(common ratio)。
对于等比数列求和,有如下公式:
记数列{an}为等比数列,公比为q,其前n项和为Sn,则有:
- 公比q=1时,Sn=na1
- 公比q≠1时,Sn=a1(1-qn)/(1-q)=a1-anq。
二、等比数列求和公式推导
当等比数列的公比等于1和公比不等于1的前n项和公式不同,所以,求一个等比数列的前n项时常常需要分“公比为1”和“公比不为1”两种情况分类讨论。
当“公比为1”时,前n项和公式的推导过程如下:
当“公比不为1”时,前n项和公式的推导过程如下:
三、注意事项
因为等比数列求和公式中,公比等于1和公比不等于1的前n项和所适用的求和公式不同,所以求等比数列的前n项和时,往往需要对其公比是否等于1进行分类讨论。
更多人工智能数学基础请参考专栏《人工智能数学基础》。
写博不易,敬请支持:
如果阅读本文于您有所获,敬请点赞、评论、收藏,谢谢大家的支持!
关于老猿的付费专栏
- 付费专栏《https://blog.csdn.net/laoyuanpython/category_9607725.html 使用PyQt开发图形界面Python应用》专门介绍基于Python的PyQt图形界面开发基础教程,对应文章目录为《 https://blog.csdn.net/LaoYuanPython/article/details/107580932 使用PyQt开发图形界面Python应用专栏目录》;
- 付费专栏《https://blog.csdn.net/laoyuanpython/category_10232926.html moviepy音视频开发专栏 )详细介绍moviepy音视频剪辑合成处理的类相关方法及使用相关方法进行相关剪辑合成场景的处理,对应文章目录为《https://blog.csdn.net/LaoYuanPython/article/details/107574583 moviepy音视频开发专栏文章目录》;
- 付费专栏《https://blog.csdn.net/laoyuanpython/category_10581071.html OpenCV-Python初学者疑难问题集》为《https://blog.csdn.net/laoyuanpython/category_9979286.html OpenCV-Python图形图像处理 》的伴生专栏,是笔者对OpenCV-Python图形图像处理学习中遇到的一些问题个人感悟的整合,相关资料基本上都是老猿反复研究的成果,有助于OpenCV-Python初学者比较深入地理解OpenCV,对应文章目录为《https://blog.csdn.net/LaoYuanPython/article/details/109713407 OpenCV-Python初学者疑难问题集专栏目录 》
- 付费专栏《https://blog.csdn.net/laoyuanpython/category_10762553.html Python爬虫入门 》站在一个互联网前端开发小白的角度介绍爬虫开发应知应会内容,包括爬虫入门的基础知识,以及爬取CSDN文章信息、博主信息、给文章点赞、评论等实战内容。
前两个专栏都适合有一定Python基础但无相关知识的小白读者学习,第三个专栏请大家结合《https://blog.csdn.net/laoyuanpython/category_9979286.html OpenCV-Python图形图像处理 》的学习使用。
对于缺乏Python基础的同仁,可以通过老猿的免费专栏《https://blog.csdn.net/laoyuanpython/category_9831699.html 专栏:Python基础教程目录)从零开始学习Python。
如果有兴趣也愿意支持老猿的读者,欢迎购买付费专栏。
老猿Python,跟老猿学Python!
* ░ 前往老猿Python博文目录 https://blog.csdn.net/LaoYuanPython ░
边栏推荐
- Exercise 7-3 store the numbers in the array in reverse order (20 points)
- MySQL transaction mvcc principle
- Golang defer
- Exercise 7-2 finding the maximum value and its subscript (20 points)
- Hands on deep learning (39) -- gating cycle unit Gru
- SSM online examination system source code, database using mysql, online examination system, fully functional, randomly generated question bank, supporting a variety of question types, students, teache
- Advanced technology management - how to design and follow up the performance of students at different levels
- Hands on deep learning (40) -- short and long term memory network (LSTM)
- Summary of the most comprehensive CTF web question ideas (updating)
- mmclassification 标注文件生成
猜你喜欢
Leetcode (Sword finger offer) - 35 Replication of complex linked list
Normal vector point cloud rotation
Baidu R & D suffered Waterloo on three sides: I was stunned by the interviewer's set of combination punches on the spot
智慧路灯杆水库区安全监测应用
How does idea withdraw code from remote push
SQL replying to comments
Latex download installation record
Pcl:: fromrosmsg alarm failed to find match for field 'intensity'
直方图均衡化
Logstack configuration details -- elasticstack (elk) work notes 020
随机推荐
Kotlin:集合使用
Summary of small program performance optimization practice
2022-2028 global gasket plate heat exchanger industry research and trend analysis report
浅谈Multus CNI
MySQL transaction mvcc principle
Exercise 8-10 output student grades (20 points)
Golang type comparison
C # use smtpclient The sendasync method fails to send mail, and always returns canceled
Golang defer
SSM online examination system source code, database using mysql, online examination system, fully functional, randomly generated question bank, supporting a variety of question types, students, teache
Baidu R & D suffered Waterloo on three sides: I was stunned by the interviewer's set of combination punches on the spot
Fabric of kubernetes CNI plug-in
Custom type: structure, enumeration, union
Rules for using init in golang
Solution to null JSON after serialization in golang
华为联机对战如何提升玩家匹配成功几率
Global and Chinese markets of water heaters in Saudi Arabia 2022-2028: Research Report on technology, participants, trends, market size and share
How can Huawei online match improve the success rate of player matching
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
法向量点云旋转