OFFSET
1,1
COMMENTS
a(n) multiplied by (h^2)/(8*m*a^2) is the n-th energy level exhibiting accidental degeneracy, for a quantum mechanical particle of mass m in a cubic box of side length a (h is Planck's constant). - A. Timothy Royappa, Feb 12 2019
LINKS
Robert Price, Table of n, a(n) for n = 1..8057
FORMULA
{n: A025427(n) > 1 }. - R. J. Mathar, Aug 05 2022
MATHEMATICA
okQ[n_]:= Length[Select[PowersRepresentations[n, 3, 2], !MemberQ[#, 0] &]] > 1; (* Jinyuan Wang, Feb 12 2019 *)
PROG
(PARI) is(n)=if(n<27, return(0)); if(n%4==0, return(is(n/4))); my(w); for(i=sqrtint((n-1)\3)+1, sqrtint(n-2), my(t=n-i^2); for(j=sqrtint((t-1)\2)+1, min(sqrtint(t-1), i), if(issquare(t-j^2), w++>1 && return(1)))); 0 \\ Charles R Greathouse IV, Aug 05 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved