+0  
 
0
436
1
avatar

For how many positive integers n<=1000, 2^n - 1 is divisible by 7?

 Aug 6, 2020
 #1
avatar
0

c=0;a=1;b=(2^a - 1);if(b%7==0, goto4, goto6);printb;c=c+1;a++;if(a<=1000, goto2, 0);printc

 

OUTPUT =333  positive integers.

 Aug 6, 2020

1 Online Users

avatar