遇店加一半,遇花喝一斗

  • 时间:2020-05-16 11:04:24
  • 分类:数学世界
  • 阅读:154 次

数学题:李白提壶去打酒,遇店加一倍,遇花喝一斗,三次遇店,三次遇花,喝完杯中酒,请问壶中原有都少酒?

数学题解答

方程解: 设:壶中原有X斗酒。

一遇店和花后,壶中酒为:2X-1;

二遇店和花后,壶中酒为:2(2X-1)-1;

三遇店和花后,壶中酒为:2[2(2X-1)-1]-1=0

求出X即可。

推荐阅读:
How to Split a String in C++?  The Best Instagram Feed WordPress Plugins to Use  Trie Class Data Structure in Python  How to Monitor the CPU Temperature of Raspberry PI using Python   Listen to what an SEO expert has to say about its benefits  Depth First Search Algorithm to Compute the Smallest String Star  Algorithm to Check if All Points are On the Same Line  Prefix Sum Algorithm to Count Number of Nice Subarrays  How to Append Another List to a Existing List in Python? (Differ  Linear Algorithm to Check If All 1’s Are at Least Length K 
评论列表
添加评论