Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?

In a repeating sequence of integers the sum of any group of concurrent integers of the same length as the pattern will always be the same.

IE:

1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 ...

5 + 1 + 2 + 3 + 4 = 15
1 + 2 + 3 + 4 + 5 = 15
4 + 5 + 1 + 2 + 3 = 15

@gvn

This comment has been minimized.

Show comment Hide comment
@gvn

gvn Feb 7, 2013

Commutative property of addition

Owner

gvn commented Feb 7, 2013

Commutative property of addition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment