How to solve this series using recursion?

If anyone knows the solution, please answer I need this as soon as possible.

Write a program in recursion that computes the sum of the series: 1^2 + 5^2 + 6^2 + 11^2 + 17^2 + 28^2 +… …. + n^2 (n is an input)