9 1978 |
No ratings yet!
Multiples of 8 plus 1
PROOF: Let p be any odd no. (2p+1)^2-1 =4p^2 + 4p +1-1 =4p^2 + 4p =4(p^2 + p) ----(1) clearly when p is an odd no. then p^2 is also an odd no. thus p^2+p is an even no.(as sum of two odd no. is an even no.) let say, p^2 + p =2 x; then eqn (1) becomes: (2p+1)^2-1 = 4(p^2 + p) =42x = 8x proved... context |
1978
2307 include<stdio.h>include<conio.h>void main() { int y,a,b,c,d,i,j,flag=0,p,q; scanf("%d",&y); while(flag<1 || y<10000)
printf("%d %d",y,flag); getch(); } context |
Gold or silver?
same dude context |