Ok I'm running a  7.2.rc1 (built by myself) on OSX and am seeing some weird 
behavior.  I define a function

def top_points(n):
    d = n + 1
    return set([(a/n,b/n,c/n,0) for a in range(d) for b in range(a+1) for c 
in range(a+1)])


Now if I do

sage: [len(top_points(i+1)) for i in range(2,10)]

I get

[30, 55, 91, 140, 204, 285, 385, 506]

Which appears correct.  But if I do

sage: [len(top_points(i)) for i in range(3,11)]

I get

[5, 5, 5, 5, 5, 5, 5, 5]

Which is wrong.

This is probably a scoping problem that I cannot see, but this confuses me.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to