Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.8k
Add 'GCD of multiple numbers' section in euclid-algorithm.md#1355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Add 'GCD of multiple numbers' section.
reverofevil commentedOct 13, 2024
Awaiting for a separate article about a sum of several numbers. I don't see why this is useful. |
I think it's useful because it's often requested in contests, and it's not very obvious. |
jxu commentedOct 13, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
We can simply have a sentence saying gcd is associative, so we can define gcd(a, b, c) as gcd(a, gcd(b, c)) and so forth. |
Indeed. |
adamant-pwn commentedOct 13, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
If we're adding this, I think it's worthwhile to mention that finding |
github-actionsbot commentedOct 14, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Preview the changes for PR#1355 (for commit38982cb) athttps://gh.cp-algorithms.com/1355/. |
Preview the changes for PR#1355 (for commitcbb7b39) athttps://gh.cp-algorithms.com/1355/. |
Thanks! And sorry for repeated merges of main into patch-1, I needed to check how pull requests preview work. |
aeeac92
intocp-algorithms:mainUh oh!
There was an error while loading.Please reload this page.
Add 'GCD of multiple numbers' section.