I've devised an algorithm that should solve it, and my function returns the correct values for n=4 and n=1260.
Nevertheless, I don't get a number of solutions greater than 1,000 for any n below 100,000, which seems too heavy for an "intro" problem.
1. Am I correct about the answer being below 100,000?
2. Can anyone confirm any of the following results:
for n = 1000, # of solutions is 25.
n=24, # = 11
n=78, # = 14
n=360, # = 53
n=15620, # = 68
n=6400, # = 43
n=1100, # = 38
n=150000, # = 149
If it's allowed, I will describe some principles of my method for anyone to judge.
Any help will be appreciated

