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.

A349787 Number of ways to write n as x^2 + y^k + 2^a + 2^b, where x,y,a,b are nonnegative integers with x >= y and a >= b, and k is either 2 or 3.

Original entry on oeis.org

2, 4, 6, 6, 8, 8, 8, 8, 11, 9, 11, 11, 12, 8, 9, 11, 15, 14, 16, 16, 17, 8, 10, 14, 15, 12, 16, 16, 12, 7, 11, 17, 22, 16, 17, 18, 17, 10, 16, 22, 23, 15, 17, 19, 17, 8, 15, 23, 19, 11, 20, 23, 17, 12, 17, 20, 20, 14, 18, 18, 13, 7, 12, 21, 23, 21, 25, 27, 26, 11, 17, 27, 25, 15, 22, 24, 14, 8, 17, 27, 29, 20, 29, 28
Offset: 2

Views

Author

Zhi-Wei Sun, Nov 30 2021

Keywords

Comments

Conjecture 1: a(n) > 0 for all n >= 2.
Below is our weaker version of Conjecture 1.
Conjecture 2: Each n = 2,3,... can be written as a sum of two perfect powers (including 0 and 1) and two powers of 2 (including 2^0 = 1).
In contrast, R. Crocker proved in 2008 that there are infinitely many positive integers which cannot be written as a sum of two squares and two powers of 2.

Examples

			a(2) = 2 with 2 = 0^2 + 0^2 + 2^0 + 2^0 = 0^2 + 0^3 + 2^0 + 2^0.
a(535903) > 0 since 535903 = 336^2 + 31^3 + 2^18 + 2^17 with 336 >= 31 and 18 >= 17.
		

Crossrefs

Programs

  • Mathematica
    PowQ[n_]:=PowQ[n]=IntegerQ[Log[2,n]];
    tab={};Do[r=0;Do[If[PowQ[n-x^2-y^k-2^a],r=r+1],{x,0,Sqrt[n-2]},{k,2,3},{y,0,Min[x,(n-2-x^2)^(1/k)]},{a,0,Log[2,n-x^2-y^k]-1}];tab=Append[tab,r],{n,2,85}];Print[tab]
Showing 1-1 of 1 results.