MathDB
Find sum of natural numbers satisfying the following condition

Source:

August 11, 2019
Natural Numbersfunction

Problem Statement

A natural number k>1k > 1 is called good if there exist natural numbers
a1<a2<<aka_1 < a_2 < \cdots < a_k
such that
1a1+1a2++1ak=1\dfrac{1}{\sqrt{a_1}} + \dfrac{1}{\sqrt{a_2}} + \cdots + \dfrac{1}{\sqrt{a_k}} = 1.
Let f(n)f(n) be the sum of the first nn [good numbers, nn \geq 1. Find the sum of all values of nn for which f(n+5)/f(n)f(n+5)/f(n) is an integer.