OFFSET
1,1
COMMENTS
A generalization of the cannonball problem for pyramids with a slope of 1/A350888(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. a(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.
This sequence contains only numbers which appear in A186699, too. A number which is in A186699, does not appear in this sequence if it is of the form: 2^m*p where p is a prime of the form 12*k+1 or 12*k-1. There are also some perfect squares like 25 excluded, as these would only provide valid solutions in the case of A350888(n) = 0, which is not part of the sequence definition.
LINKS
Thomas Scheuerle, Some solutions to this problem sorted by a(n).
Thomas Scheuerle, Recursive solution formulas.
FORMULA
EXAMPLE
PROG
(PARI)
sqtest(n, c)={q=1; r=1; for(t=2, c, t+=n; r+=1; q+=(t*t); if(issquare(q), break)); [q, r]}
z=500000; b=[; ]; for(n=0, z, r=sqtest(n, z); if(issquare(r[1]), b=concat(b, [sqrtint(r[1]); r[2]]))); b=vecsort(b, 1); vector(#b, k, b[2, k]) \\ Last valid value for z=500000 is 49.
CROSSREFS
Cf. A186699.
KEYWORD
nonn,more
AUTHOR
Thomas Scheuerle, Feb 25 2022
STATUS
approved