Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Your example WorksForMe(TM):

Pasting code; enter '--' alone on the line to stop or use Ctrl-D.
:for n in range(6,12,2):
:    for k in range(2,floor(n/2)+1,2):
:        print("n="+str(n)+", k="+str(k))
:        print(bool(LHS(n,k)==RHS(n,k)))
:
:--
n=6, k=2
True
n=8, k=2
True
n=8, k=4
True
n=10, k=2
True
n=10, k=4
True

This is on 8.9.beta7 with Python 3. What version of Sage are you using ?