A351723 Numbers of the form x^2 + y^2 + z^2 + x*y*z with x,y,z nonnegative integers.
0, 1, 2, 4, 5, 8, 9, 10, 13, 14, 16, 17, 18, 20, 22, 25, 26, 28, 29, 32, 34, 36, 37, 38, 40, 41, 44, 45, 49, 50, 52, 53, 54, 58, 61, 62, 64, 65, 68, 70, 72, 73, 74, 76, 77, 80, 81, 82, 85, 88, 89, 90, 92, 94, 97, 98, 100, 101, 104, 106, 108, 109, 110, 112, 113, 116, 117, 118, 121, 122, 125, 128, 130, 133, 134, 136
Offset: 1
Keywords
Examples
a(3) = 2 with 2 = 1^2 + 1^2 + 0^2 + 1*1*0.
Links
- Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
- Zhi-Wei Sun, Can each natural number be represented by 2*w^2+x^2+y^2+z^2+xyz with x,y,z in {0,1,2,...}? Question 416344 at MathOverflow, Feb. 17, 2022.
Programs
-
Mathematica
tab={};Do[n=x^2+y^2+z^2+x*y*z;If[n<=140,tab=Append[tab,n]],{x,0,20},{y,0,x},{z,0,y}];Print[Sort[DeleteDuplicates[tab]]]
Comments