Solution of a number theoretic problem involving knowledge