A260803 Number of ways to write n as n = x*y*z + x + y + z where 1 <= x <= y <= z <= n.
0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 2, 0, 2, 1, 2, 0, 2, 1, 2, 1, 1, 0, 4, 1, 2, 1, 2, 1, 3, 0, 2, 2, 2, 1, 5, 0, 1, 2, 4, 0, 4, 0, 3, 2, 2, 1, 4, 2, 2, 2, 2, 0, 5, 1, 4, 1, 1, 2, 6, 1, 2, 2, 4, 1, 4, 0, 3, 3, 3, 0, 6, 1, 2, 3, 4, 1, 4, 1, 4, 2, 2, 0, 7, 2, 3, 2, 4, 2, 5, 1, 2, 2, 2, 2, 8, 0, 3, 4
Offset: 0
Keywords
Links
- David A. Corneth, Table of n, a(n) for n = 0..9999
- Brian Conrey and Neil Shah, Which numbers are not the sum plus the product of three positive integers?, arXiv:2112.15551 [math.NT], 2021.
- Vladimir Shevelev, Representation of positive integers by the form x1...xk+x1+...+xk, arXiv:1508.03970 [math.NT], 2015.
Programs
-
Mathematica
a[n_] := Sum[Sum[Boole[Mod[n-x-y, x y + 1] == 0 && n-x >= y(x y + 2)], {y, x, (n - x(1+x^2))/2 // Floor}], {x, 1, n/3 // Floor}]; Table[a[n], {n, 0, 99}] (* Jean-François Alcover, Sep 20 2018, after M. F. Hasler *)
-
PARI
a(n)=sum(x=1,n\3,sum(y=x,(n-x*(1+x^2))\2,(n-x-y)%(x*y+1)==0&&n-x>=y*(x*y+2))) \\ M. F. Hasler, Jul 31 2015
Comments