Composite divisors 2

Find the least positive integer n n such that n n \mid 2 n 2 2^{n}-2 but n n \nmid 3 n 3 3^{n}-3 .

Try Part-1 also.


The answer is 341.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Kushal Bose
Jun 11, 2016

import math

for i in range(1,1000):

if((2**i-2)%i==0 and (3**i-3)%i!=0):


     print(i)

The above program gives smallest value is 341

How to solve it without programs?

Mr Yovan - 4 years, 11 months ago

Agreed to @Mr Yovan

Rishu Jaar - 3 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...