⚠ WARNING :REALLY HARD PROBLEM ⚠ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

⚠ WARNING :REALLY HARD PROBLEM ⚠

Write a program to find all positive integers n, k1, k2,..., kn such that: k1+k2+... +kn = 5n-4 and 1/k1+1/k2+...+1/kn = 1 Hint: n<10

17th May 2018, 9:56 PM
Heisenberg
Heisenberg - avatar
1 Answer
0
1 is the only number that works since 1/1 = 1 add anything else to 1 and you are > 1 you will never have anything else work for 1/k1 + ... = 1 1/k1 ... 1/kn additive will approach 2 but never get there...... Assuming I am reading the problem right.
18th May 2018, 2:19 PM
Lindholm