A270705 Number of ordered ways to write n as x^2*pen(x) + pen(y) + pen(z) with pen(x) = x*(3x+1)/2 and pen(y) <= pen(z), where x, y and z are integers ("pen" stands for "pentagonal").
1, 2, 5, 5, 6, 4, 3, 4, 4, 4, 3, 2, 3, 3, 6, 4, 4, 4, 3, 3, 3, 4, 6, 5, 6, 5, 5, 8, 8, 9, 7, 5, 7, 6, 7, 9, 7, 10, 5, 5, 9, 6, 12, 7, 8, 6, 3, 10, 6, 5, 7, 5, 8, 7, 8, 9, 5, 9, 8, 7, 5, 7, 7, 5, 6, 6, 5, 4, 6, 4, 8, 5, 9, 6, 3, 7, 5, 8, 8, 8, 8, 6, 6, 6, 6, 6, 8, 3, 1, 4, 6
Offset: 0
Keywords
Examples
a(88) = 1 since 88 = 1^2*pen(1) + pen(-5) + pen(-6).
Links
- Zhi-Wei Sun, Table of n, a(n) for n = 0..10000
- Zhi-Wei Sun, Mixed sums of squares and triangular numbers, Acta Arith. 127(2007), 103-113.
- Zhi-Wei Sun, On universal sums of polygonal numbers, Sci. China Math. 58(2015), no. 7, 1367-1396.
- Zhi-Wei Sun, On universal sums ax^2+by^2+f(z), aT_x+bT_y+f(z) and zT_x+by^2+f(z), preprint, arXiv:1502.03056 [math.NT], 2015.
Crossrefs
Programs
-
Mathematica
pen[x_]:=pen[x]=x(3x+1)/2 pQ[n_]:=pQ[n]=IntegerQ[Sqrt[24n+1]] Do[r=0;Do[If[pQ[n-pen[y]-x^2*pen[x]],r=r+1],{y,-Floor[(Sqrt[12n+1]+1)/6],(Sqrt[12n+1]-1)/6},{x,-1-Floor[(2(n-pen[y])/3)^(1/4)],(2(n-pen[y])/3)^(1/4)}];Print[n," ",r];Continue,{n,0,90}]
Comments