A297970 Numbers that are not the sum of 3 squares and a nonnegative 7th power.
112, 240, 368, 496, 624, 752, 880, 1008, 1136, 1264, 1392, 1520, 1648, 1776, 1904, 2032, 2160
Offset: 1
Links
- Wikipedia, Legendre's three-square theorem
Crossrefs
Programs
-
Mathematica
t1={}; Do[Do[If[x^2+y^2+z^2+w^7==n, AppendTo[t1,n]&&Break[]], {x,0,n^(1/2)}, {y,x,(n-x^2)^(1/2)}, {z,y,(n-x^2-y^2)^(1/2)}, {w,0,(n-x^2-y^2-z^2)^(1/7)}], {n,0,3000}]; t2={}; Do[If[FreeQ[t1,k]==True, AppendTo[t2,k]], {k,0,3000}]; t2
Formula
a(n) = 128n - 16 = 16 * A004771(n - 1), 1 <= n <= 17.
Comments