Study guides

☆☆

Q: What is the gcd of any two consecutive even numbers?

Write your answer...

Submit

Still have questions?

Related questions

The GCF is 1.

if the gcd and lcm are given and one of the numbers are also given,multiply the gcd and lcm and divide them by the given number

Any two numbers who are relatively prime will workSo look at 9 and 4. Neither is prime and their GCD is 1.You must need two numbers with NO other factors in common.

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html

It is: 72

The greatest common denominator (GCD) refers to a denominator that is COMMON to two or more numbers. You have only one number in the question! The greatest denominator of any number is itself.

use slide

The greatest common denominator (GCD) refers to a denominator that is COMMON to two or more numbers. You have only one number in the question! The greatest denominator of any number is itself.

Greatest Common Divisor (GCD) for 18 45 72 is 9.

The GCF is 1.

You can just use the GCD of any two of your numbers and find the GCD of it with your third number. Same for LCM. public class Lcmgcd { private static int gcd(int a, int b) { return (b == 0) ? a: gcd(b, a%b); } private static int lcm(int a, int b) { return a * b / gcd(a, b); } public static void main(String[] args) { int[] n = {12, 16, 28}; System.out.println("GCD: " + gcd(n[2], gcd(n[0], n[1])) + "\tLCM: " + lcm(n[1],lcm(n[2],n[0]))); } }

Something that is similar to an actual program. Example: Define gcd (a, b) as a if b==0 b if a==0 gcd (a, b modulo a) if a<=b gcd (b, a modulo b) if a>b

People also asked