Refactored to remove duplicate code in home view.
Refactored to remove duplicate code in home view.

hackerg/NumericSequenceCalculator,hackerg/NumericSequenceCalculator,hackerg/NumericSequenceCalculator