Created
September 28, 2018 02:44
-
-
Save tabvn/a463102ac057105da0df23a09a2d30bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Đề bài: | |
| m: số bút mua sẽ được tặng thêm 1 cái | |
| n: tổng số bút cần phải mua | |
| t: là số tiền cho 1 cái bút | |
| gọi x là số bút phải trả tiền | |
| gọi y là số bút được khuyến mãi | |
| khi đó: | |
| x + y = n (*) | |
| như vậy số bút cần phải mua là n - y; | |
| Cứ mua m cái sẽ được tặng thêm 1 cái. vậy khi mua n - y cái sẽ được khuyến mãi là (n-y)/m | |
| => x + (n -y)/m = n; | |
| y = n-y/m | |
| my - n +y = 0; | |
| (m +1)*y = n; | |
| y = n/m+1 | |
| x + n/(m+1) = n; | |
| x = n - n/(m+1) | |
| vậy tổng số tiền phải trả là = x * t; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment