Write a Python main function that reads in an integer. Then output (on a line by itself) # is Curzon or # is not Curzon. Have the majority complete just can not figure out what to set the if number= to to get it to print out
n = int(input("Enter the number : "))
n1 = 2**n + 1
n2 = 2*n + 1
if(n1 % n2) == 0:
print("is Curzon")
else:
print("is not Curzon")
Comments
Leave a comment