9
Chat with our AI personalities
It is not true.
n = 3 is an odd integer.
n of n-1 = 3 of 2 = 6 and 8 DOES NOT DIVIDE 6.
11
An odd number is written 2n+1 with n any number (2n1+1)+(2n2+1)+...+(2n9+1) = 2(n1+n2+...+n9)+9 = 50 is not possible as 2(n1+n2+...+n9) = 41 is not possible with integers
Even numbers : they can be written 2n 2n1+2n2+....+2nm = 2(n1+n2+....+nm) so it's always an even number 2n1x 2n2x....x2nm = 2(n1+n2+....+nm) which is always an even number Odd numbers: they canbe written 2n+1 (2n1+1) + (2n2+1) + ....+ (2nm +1) = 2(n1+n2+....+nm) + m which is even if m is even and odd if m is odd, so it depend of the number of terms (2n1+1) x (2n2+1) x ....x (2nm +1) is always odd cause the last term of the expansion is always +1 and other terms have at least 2 as factor
#include<stdio.h> int main(){ int n1,n2; printf("\nEnter two numbers:"); scanf("%d %d",&n1,&n2); while(n1!=n2){ if(n1>=n2) n1=n1-n2; else n2=n2-n1; } printf("\nGCD=%d",n1); return 0; }
the value of the exponent n1