A349945 Number of ways to write n as a^4 + b^2 + (c^4 + d^2)/5 with a,b,c,d nonnegative integers.
1, 3, 4, 3, 3, 6, 7, 3, 1, 4, 5, 4, 2, 3, 8, 5, 3, 9, 10, 6, 7, 11, 10, 3, 2, 6, 8, 9, 3, 9, 16, 5, 4, 11, 9, 7, 9, 9, 12, 7, 2, 8, 11, 7, 2, 11, 14, 4, 3, 10, 10, 9, 8, 9, 21, 9, 3, 9, 5, 7, 4, 10, 17, 8, 3, 15, 15, 9, 9, 16, 20, 5, 3, 5, 7, 11, 3, 11, 18, 4, 6, 22, 18, 11, 14, 15, 19, 10, 2, 9, 16, 10, 3, 9, 16, 11, 7, 19, 16, 13, 12
Offset: 0
Keywords
Examples
a(8) = 1 with 8 = 0^4 + 2^2 + (2^4 + 2^2)/5.
Links
- Zhi-Wei Sun, Table of n, a(n) for n = 0..10000
- Zhi-Wei Sun, Refining Lagrange's four-square theorem, J. Number Theory 175(2017), 167--190.
- Zhi-Wei Sun, New Conjectures in Number Theory and Combinatorics (in Chinese), Harbin Institute of Technology Press, 2021.
Programs
-
Mathematica
SQ[n_]:=SQ[n]=IntegerQ[Sqrt[n]]; tab={};Do[r=0;Do[If[SQ[5(n-x^4-y^2)-z^4],r=r+1],{x,0,n^(1/4)},{y,0,Sqrt[n-x^4]},{z,0,(5(n-x^4-y^2))^(1/4)}];tab=Append[tab,r],{n,0,100}];Print[tab]
Comments