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-5 of 5 results.

A272979 Number of ways to write n as x^2 + 2*y^2 + 3*z^3 + 4*w^4 with x,y,z,w nonnegative integers.

Original entry on oeis.org

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

Views

Author

Zhi-Wei Sun, Jul 13 2016

Keywords

Comments

Conjecture: For positive integers a,b,c,d, any natural number can be written as a*x^2 + b*y^2 + c*z^3 + d*w^4 with x,y,z,w nonnegative integers, if and only if (a,b,c,d) is among the following 49 quadruples: (1,2,1,1), (1,3,1,1), (1,6,1,1), (2,3,1,1), (2,4,1,1), (1,1,2,1), (1,4,2,1), (1,2,3,1), (1,2,4,1), (1,2,12,1), (1,1,1,2), (1,2,1,2), (1,3,1,2), (1,4,1,2), (1,5,1,2), (1,11,1,2), (1,12,1,2), (2,4,1,2), (3,5,1,2), (1,1,4,2), (1,1,1,3), (1,2,1,3), (1,3,1,3), (1,2,4,3), (1,2,1,4), (1,3,1,4), (2,3,1,4), (1,1,2,4), (1,2,2,4), (1,8,2,4), (1,2,3,4), (1,1,1,5), (1,2,1,5), (2,3,1,5), (2,4,1,5), (1,3,2,5), (1,1,1,6), (1,3,1,6), (1,1,2,6), (1,2,1,8), (1,2,4,8), (1,2,1,10), (1,1,2,10), (1,2,1,11), (2,4,1,11), (1,2,1,12), (1,1,2,13), (1,2,1,14),(1,2,1,15).
See also A262824, A262827, A262857 and A273917 for similar conjectures.

Examples

			a(0) = 1 since 0 = 0^2 + 2*0^2 + 3*0^3 + 4*0^4.
a(1) = 1 since 1 = 1^2 + 2*0^2 + 3*0^3 + 4*0^4.
a(2) = 1 since 2 = 0^2 + 2*1^2 + 3*0^3 + 4*0^4.
a(14) = 1 since 14 = 3^2 + 2*1^2 + 3*1^3 + 4*0^4.
a(17) = 1 since 17 = 3^2 + 2*2^2 + 3*0^3 + 4*0^4.
a(59) = 1 since 59 = 3^2 + 2*5^2 + 3*0^3 + 4*0^4.
a(63) = 1 since 63 = 3^2 + 2*5^2 + 3*0^2 + 4*1^4.
a(287) = 1 since 287 = 11^2 + 2*9^2 + 3*0^2 + 4*1^4.
		

Crossrefs

Programs

  • Mathematica
    SQ[n_]:=SQ[n]=IntegerQ[Sqrt[n]]
    Do[r=0;Do[If[SQ[n-4w^4-3z^3-2y^2],r=r+1],{w,0,(n/4)^(1/4)},{z,0,((n-4w^4)/3)^(1/3)},{y,0,((n-4w^4-3z^3)/2)^(1/2)}];Print[n," ",r];Continue,{n,0,100}]

A273917 Number of ordered ways to write n as w^2 + 3*x^2 + y^4 + z^5, where w is a positive integer and x,y,z are nonnegative integers.

Original entry on oeis.org

1, 2, 1, 2, 4, 2, 1, 2, 2, 2, 1, 1, 3, 3, 1, 2, 5, 3, 1, 4, 4, 2, 2, 1, 2, 3, 1, 4, 8, 4, 1, 4, 4, 1, 1, 5, 8, 5, 3, 3, 3, 2, 1, 6, 6, 1, 1, 4, 7, 5, 3, 8, 10, 5, 2, 1, 3, 3, 2, 5, 5, 2, 3, 8, 8, 4, 2, 7, 8, 1, 1, 1, 3, 3, 2, 7, 7, 4, 3, 6
Offset: 1

Views

Author

Zhi-Wei Sun, Jun 04 2016

Keywords

Comments

Conjectures:
(i) a(n) > 0 for all n > 0, and a(n) = 1 only for n = 1, 3, 7, 11, 12, 15, 19, 24, 27, 31, 34, 35, 43, 46, 47, 56, 70, 71, 72, 87, 88, 115, 136, 137, 147, 167, 168, 178, 207, 235, 236, 267, 286, 297, 423, 537, 747, 762, 1017.
(ii) Any positive integer n can be written as w^2 + x^4 + y^5 + pen(z), where w is a positive integer, x,y,z are nonnegative integers, and pen(z) denotes the pentagonal number z*(3*z-1)/2.
Conjectures a(n) > 0 and (ii) verified up to 10^11. - Mauro Fiorentini, Jul 19 2023
See also A262813, A262857, A270566, A271106 and A271325 for some other conjectures on representations.

Examples

			a(1) = 1 since 1 = 1^2 + 3*0^2 + 0^4 + 0^5.
a(3) = 1 since 3 = 1^2 + 3*0^2 + 1^4 + 1^5.
a(7) = 1 since 7 = 2^2 + 3*1^2 + 0^4 + 0^5.
a(11) = 1 since 11 = 3^2 + 3*0^2 + 1^4 + 1^5.
a(12) = 1 since 12 = 3^2 + 3*1^2 + 0^4 + 0^5.
a(15) = 1 since 15 = 1^2 + 3*2^2 + 1^4 + 1^5.
a(19) = 1 since 19 = 4^2 + 3*1^2 + 0^4 + 0^5.
a(24) = 1 since 24 = 2^2 + 3*1^2 + 2^4 + 1^5.
a(27) = 1 since 27 = 5^2 + 3*0^2 + 1^4 + 1^5.
a(31) = 1 since 31 = 2^2 + 3*3^2 + 0^4 + 0^5.
a(34) = 1 since 34 = 1^2 + 3*0^2 + 1^4 + 2^5.
a(35) = 1 since 35 = 4^2 + 3*1^2 + 2^4 + 0^5.
a(43) = 1 since 43 = 4^2 + 3*3^2 + 0^4 + 0^5.
a(46) = 1 since 46 = 1^2 + 3*2^2 + 1^4 + 2^5.
a(47) = 1 since 47 = 2^2 + 3*3^2 + 2^4 + 0^5.
a(56) = 1 since 56 = 6^2 + 3*1^2 + 2^4 + 1^5.
a(70) = 1 since 70 = 5^2 + 3*2^2 + 1^4 + 2^5.
a(71) = 1 since 71 = 6^2 + 3*1^2 + 0^4 + 2^5.
a(72) = 1 since 72 = 6^2 + 3*1^2 + 1^4 + 2^5.
a(87) = 1 since 87 = 6^2 + 2*1^2 + 2^4 + 2^5.
a(88) = 1 since 88 = 2^2 + 3*1^2 + 3^4 + 0^5.
a(115) = 1 since 115 = 8^2 + 3*1^2 + 2^4 + 2^5.
a(136) = 1 since 136 = 10^2 + 3*1^2 + 1^4 + 2^5.
a(137) = 1 since 137 = 11^2 + 3*0^2 + 2^4 + 0^5.
a(147) = 1 since 147 = 12^2 + 3*1^2 + 0^4 + 0^5.
a(167) = 1 since 167 = 2^2 + 3*7^2 + 2^4 + 0^5.
a(168) = 1 since 168 = 2^2 + 3*7^2 + 2^4 + 1^5.
a(178) = 1 since 178 = 7^2 + 3*4^2 + 3^4 + 0^5.
a(207) = 1 since 207 = 10^2 + 3*5^2 + 0^4 + 2^5.
a(235) = 1 since 235 = 12^2 + 3*5^2 + 2^4 + 0^5.
a(236) = 1 since 236 = 12^2 + 3*5^2 + 2^4 + 1^5.
a(267) = 1 since 267 = 12^2 + 3*5^2 + 2^4 + 2^5.
a(286) = 1 since 286 = 4^2 + 3*3^2 + 0^4 + 3^5.
a(297) = 1 since 297 = 3^2 + 3*0^2 + 4^4 + 2^5.
a(423) = 1 since 423 = 11^2 + 3*10^2 + 1^4 + 1^5.
a(537) = 1 since 537 = 21^2 + 3*4^2 + 2^4 + 2^5.
a(747) = 1 since 747 = 11^2 + 3*0^2 + 5^4 + 1^5.
a(762) = 1 since 762 = 27^2 + 3*0^2 + 1^4 + 2^5.
a(1017) = 1 since 1017 = 27^2 + 3*0^2 + 4^4 + 2^5.
		

Crossrefs

Programs

  • Mathematica
    SQ[n_]:=SQ[n]=IntegerQ[Sqrt[n]]
    Do[r=0;Do[If[SQ[n-3*x^2-y^4-z^5],r=r+1],{x,0,Sqrt[(n-1)/3]},{y,0,(n-1-3x^2)^(1/4)},{z,0,(n-1-3x^2-y^4)^(1/5)}];Print[n," ",r];Continue,{n,1,80}]

A322122 Number of positive integers that are not the sum of 3 squares and a nonnegative (2n + 1)-st power.

Original entry on oeis.org

0, 0, 17, 191, 1816, 16541, 149320, 1344880, 12106148, 108960347, 980654368, 8825914594, 79433288194, 714899721602, 6434097782077, 57906880685893, 521161927629204, 4690457351939133, 42214116174823814, 379927045590000351, 3419343410347321718
Offset: 1

Views

Author

XU Pingya, Nov 27 2018

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_]:=Sum[Floor[3^(2n+1)/2^(2k+3)-7/8]+1, {k,2,n-1}];
    Table[a[n], {n,21}]

Formula

a(n) = Sum_{k=2..n-1} (floor(3^(2n+1)/2^(2k+3)-7/8) + 1).

A332664 a(n) = number of nonnegative integers that are not the sum of {2 squares, a nonnegative 5th power, and a nonnegative n-th power}.

Original entry on oeis.org

0, 2, 14, 115, 116, 109, 245, 381, 1387, 913, 1234, 1552, 2103, 2838, 3036, 3384, 4693, 5405, 8304, 9088, 11089, 13289, 15815, 18619, 20979, 22755, 24107, 24984, 25548
Offset: 2

Views

Author

XU Pingya, Feb 18 2020

Keywords

Comments

a(2) = 0 by a theorem of Zhi-Wei Sun, see A273915. All terms beyond a(2) are conjectures and have only been checked to 4*10^9.

Examples

			a(2) = 0, since any nonnegative integer k is the sum of 3 squares and a nonnegative 5th power (see A273915).
a(4) = 14. Since any nonnegative integer k (<= 4*10^9) is the sum of {2 squares, a nonnegative 5th power, and a 4th power}, except for 14 numbers: 23, 44, 71, 79, 215, 383, 863, 1439, 1583, 1727, 1759, 1919, 2159, 2543.
		

Crossrefs

Programs

  • Mathematica
    a(5)
    Do[m=1000000 (k-1)+1; n=1000000 k;
      t=Union@Flatten@Table[x^2 + y^2 + z^5 + w^5,
    {x,0,n^(1/2)}, {y,x,(n-x^2)^(1/2)}, {z,0,(n-x^2-y^2)^(1/5)},
    {w, If[x^2 + y^2 + z^5 < m, Floor[(m-1-x^2-y^2-z^5)^(1/5)] + 1, z], (n-x^2-y^2-z^5)^(1/5)}];
      b=Complement[Range[m, n], t];
      Print[Length@b], {k,4000}]

A335659 Numbers that are not the sum of 3 nonzero squares and a positive 5th power.

Original entry on oeis.org

0, 1, 2, 3, 5, 6, 8, 9, 11, 14, 16, 17, 21, 24, 26, 29, 32, 33, 40, 48, 64, 72, 96, 112, 144, 160, 192, 240
Offset: 1

Views

Author

XU Pingya, Jun 17 2020

Keywords

Comments

No more terms up to 10^6.

Crossrefs

Programs

  • Mathematica
    n = 10^5;
    t = Union@Flatten@Table[x^2 + y^2 + z^2 + w^5, {x, (n/3)^(1/2)}, {y, x, ((n-x^2)/2)^(1/2)}, {z, y, (n-x^2-y^2)^(1/2)}, {w, 1, (n-x^2-y^2-z^2)^(1/5)}];
    Complement[Range[0, n], t]
Showing 1-5 of 5 results.