Menu Close

Category: Number Theory

Question-190285

Question Number 190285 by Abdullahrussell last updated on 31/Mar/23 Commented by ARUNG_Brandon_MBU last updated on 31/Mar/23 #include <stdio.h> int main(void) { unsigned int a, b; for (a = 100; a<1000; a++) { for (b = 300; b<1000; b++) { if (1001*a+1 == b*b) goto loopend; } } loopend: printf ("a = %u, b = %u", a, b); return 0; } Commented by ARUNG_Brandon_MBU last updated on 31/Mar/23 Output: a = 183, b = 428…

Question-190286

Question Number 190286 by Abdullahrussell last updated on 31/Mar/23 Answered by talminator2856792 last updated on 31/Mar/23 b21=1001a(b1)(b+1)=1001a(b1)(b+1)1001=a$$\:\:\frac{\left({b}\:−\:\mathrm{1}\right)\left({b}\:+\:\mathrm{1}\right)}{\mathrm{7}\:×\:\mathrm{11}\:×\:\mathrm{13}\:}\:=\:{a} \