cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A337743 Number of ways to write n as x^2 + y^2 + z^2 + w^2 with x + 2*y a power of four (including 4^0 = 1), where x, y, z, w are nonnegative integers with z <= w.

Original entry on oeis.org

1, 1, 1, 1, 3, 3, 1, 1, 3, 2, 1, 1, 2, 3, 1, 1, 3, 3, 1, 2, 4, 2, 1, 2, 2, 3, 1, 0, 3, 4, 1, 1, 3, 2, 1, 2, 2, 2, 1, 1, 5, 3, 0, 1, 3, 2, 0, 1, 1, 3, 2, 2, 5, 6, 3, 3, 5, 2, 1, 1, 4, 5, 3, 1, 6, 8, 0, 4, 9, 5, 2, 3, 4, 4, 1, 1, 7, 6, 3, 3
Offset: 1

Views

Author

Zhi-Wei Sun, Oct 30 2020

Keywords

Comments

Conjecture 1: a(n) > 0 if n is neither of the form 4^k*(4*m+3) (k>=0, m>=0) nor of the form 2^(4*k+3)*101 (k>=0). In particular, a(n^2) > 0 and a(2*n^2) > 0 for all n > 0.
Conjecture 2: Any positive integer not of the form 16^k*m (k>=0, m = 1, 25, 46, 88) can be written as x^2 + y^2 + z^2 + w^2 (x,y,z,w >= 0) such that 2*x - y = 4^a for some nonnegative integer a.
Conjecture 3: Any positive integer of the form 2^k*(2*m+1) (k>=0, m>=0) with k == floor(m/2) (mod 2) (such as positive squares) can be written as x^2 + y^2 + z^2 + w^2 (x,y,z,w >= 0) such that x + 3*y = 4^a for some nonnegative integer a.

Examples

			a(7) = 1, and 7 = 2^2 + 1^2 + 1^2 + 1^2 with 2 + 2*1 = 4.
a(35) = 1, and 35 = 1^2 + 0^2 + 3^2 + 5^2 with 1 + 2*0 = 4^0.
a(49) = 1, and 49 = 0^2 + 2^2 + 3^2 + 6^2 with 0 + 2*2 = 4.
		

Crossrefs

Programs

  • Mathematica
    SQ[n_]:=SQ[n]=IntegerQ[Sqrt[n]];
    PQ[n_]:=PQ[n]=n>0&&IntegerQ[Log[4,n]];
    tab={};Do[r=0;Do[If[SQ[n-x^2-y^2-z^2]&&PQ[x+2y],r=r+1],{x,0,Sqrt[n]},{y,0,Sqrt[n-x^2]},{z,0,Sqrt[(n-x^2-y^2)/2]}];tab=Append[tab,r],{n,1,80}];tab
Showing 1-1 of 1 results.