āš  WARNING :REALLY HARD PROBLEM āš  | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
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