Problem

Source: 2022 Peru MO (ONEM) L3 p4 - finals

Tags: number theory, Perfect Powers, Perfect power, Digits



For each positive integer n, the number $R(n) = 11 ... 1$ is defined, which is made up of exactly $n$ digits equal to $1$. For example, $R(5) = 11111$. Let $n > 4$ be an integer for which, by writing all the positive divisors of $R(n)$, it is true that each written digit belongs to the set $\{0, 1\}$. Show that $n$ is a power of an odd prime number. Clarification: A power of an odd prime number is a number of the form $p^a$, where $p$ is an odd prime number and $a$ is a positive integer.