| 1 | initial version |
Use floor() function - like
x,n = var('x,n')
sum(floor(x/3),x,0,n)
Instead of n%3 you can use n - 3*floor(n/3).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.