I am sorry but Wolfram-alpha is for non-commercial use only. http://www.wolframalpha.com/termsofuse/
But you can reference the Wolfram page about this problem http://mathworld.wolfram.com/BookStackingProblem.html
Apparently, Wolfram also has an overhanging cards demonstration project http://demonstrations.wolfram.com/OverhangingCards/
Thank you so much for the comment. I edited my post and referenced wolfram. Actually, I didn't use Wolfram for the content, I only used it for the calculation. Anyway, the demonstration looks cool!! Thank you again.
That is fine. But you cannot use the screenshots from wolfram alpha since your steemit post has commercial value.
I think everything is fine now.
Your sum operators are missing parameters in their subscript. Correct sum notation is
Corrected that too. Feel free to comment if there are any other mistakes/typos.