Let Mn = 2n 1 be the n th Mersenne number. Show that Mn can be…
Question Answered step-by-step Let Mn = 2n 1 be the n th Mersenne number. Show that Mn can be… Let Mn = 2n ? 1 be the n th Mersenne number. Show that Mn can be prime only if n is. [5 marks] Let ?m = m(m + 1)/2 be the mth triangular number and recall that a perfect number is one equal to the sum of its factors (including 1 but excluding the number itself). Suppose that p = Mn is prime. Show that ?p is a perfect number. [5 marks] The result of the program should be a list of all movies rated with the following information per line — movie id, movie title, release date, IMDB URL, average rating, total number of unique users rated, total number of ratings for the movie Use 2 reducers by setting the number of reducers to 2. Please add combiner for efficiency. Define a custom counter that has a running count of total records processed in map, total number of unique movies in reducer. Before you begin, please split the input file into 5 files called u1.data, u2.data, u3.data, u4.data and u5.data, each having 20000 records. Use the Unix split command. Reference: https://kb.iu.edu/d/afarAll the input files – 5 user ratings file and the movie information file should be gzip compressed before processing. Reducer output files should be gzipped.I am getting below-mentioned error which is running code to the simulation of a smart home using Python codes and using MQQT as a message broker in the background.Its code to simulate AC device ,Light dvice and Edgeserver code, and main code contains calling functions for the child codes. +++++++++++++++++++++++++++++++++++++++++++++++++++++++Error While Running Main.pyC:UsersRiyanshDownloadsIITM_CourseIOT_ProjectC03-Project-01-Simple-Smart-HomeSoluitonvenvScriptspython.exe C:/Users/Riyansh/Downloads/IITM_Course/IOT_Project/C03-Project-01-Simple-Smart-Home/Soluiton/main.pySmart Home Simulation started.*********************Intitate the device creation and registration process.Creating the Light devices for their respective rooms.Traceback (most recent call last):File “C:UsersRiyanshDownloadsIITM_CourseIOT_ProjectC03-Project-01-Simple-Smart-HomeSoluitonmain.py”, line 21, in


