In a recent work, S. Cooper (J. Number Theory 103:135-162, 1988) conjectured a formula for r 2k+1 (p 2 ), the number of ways p 2 can be expressed as a sum of 2k + 1 squares. Inspired by this conjecture, we obtain an explicit formula for r 2k+1 (n 2 ), n ≥ 1.A classical problem in number theory is to give an explicit formula for the number of ways one can represent a non-negative integer n as a sum of k squares, where k is a positive integer. The study of r k (n) has a long history. For k = 2, 4, 6, 8, elegant formulae for r k (n) were found by Jacobi. A general formula for r k (n), when k is even was stated by Ramanujan [12]. It was proved by Mordell [10] and S. Cooper [3] gave an elementary proof using Ramanujan's 1 ψ 1 summation formula. It is also known that r k (n) can be expressed in terms of coefficients of Eisenstein series and cusp forms and Rankin [13] showed that the cusp form part is non-trivial for k > 8. Recently, combining a variety of methods, S. Milne [9] obtained formulas for r 4s 2 (n) and r 4s 2 +4s (n) Dedicated to Srinivasa Ramanujan.S. Gun · B. Ramakrishnan ( )