OFFSET
1,1
COMMENTS
This is a generalization of the cannonball problem for pyramids with a slope of 1/a(n). In the cannonball problem, a square pyramid of stacked balls shall contain a square number of balls in total. Each layer of such a pyramid consists of a square number of balls, in the classic case the top layer has one ball, the layers below contain adjacent square numbers of balls. For this sequence we ignore the fact that if adjacent layers do not alternate between odd and even squares the stacking will become difficult at least for sphere-like objects. We start in the top layer always with one ball, but will skip a constant count of square numbers between each layer. This results in pyramids which slope <= 1. A350887(n) is the number of layers needed to stack such a pyramid. As this sequence is only a list of solutions, n has no known relation to its definition.
For each slope 1/a(n) there exists exactly one or no such pyramid with a square number of balls.
LINKS
Thomas Scheuerle, Some solutions to this problem sorted by A350887.
Thomas Scheuerle, Recursive solution formulas.
FORMULA
A350886(n)^2 = c*((b*(4*b*c^2-(6*c-2)*b + 12*(c-1)) + 12)/12), with c = A350887(n) and b = a(n). Expanded to see factors more clearly.
A350886(n)^2 = c*b^2*( ((1/b) + (c-1)/2)^2 + (c^2-1)/12 ). Shorter form of above.
a(n) != a(m) if n != m.
Let s(n) be the sequence of numbers such that A350887(s(n)) = 4 and s(n) is sorted in ascending order, then a(s(n)) has the ordinary generating function (2*(-7 + z))/(-1 + 31*z - 31*z^2 + z^3).
Let s(n) be the sequence of numbers such that A350887(s(n)) = 49 and s(n) is sorted in ascending order, then a(s(n)) has the ordinary generating function (-13 + z)/(-1 + 391*z - 391*z^2 + z^3).
EXAMPLE
PROG
(PARI)
sqtest(n, c)={q=1; for(t=2, c, t+=n; q+=(t*t); if(issquare(q), break)); q}
z=500000; b=[; ]; for(n=0, z, r=sqtest(n, z); if(issquare(r), b=concat(b, [sqrtint(r); n+1]))); b=vecsort(b, 1); vector(#b, k, b[2, k]) \\ Last valid value for z=500000 is 5082.
CROSSREFS
Cf. A186699.
KEYWORD
nonn,more
AUTHOR
Thomas Scheuerle, Feb 25 2022
STATUS
approved