MathCastle
ChallengeMediumHard Number Theory

Hard Number Theory · Medium problem

Let Rn=11⋯1⏟nR_n = \underbrace{11\cdots1}_{n} be the repunit with nn ones. Find the smallest positive integer nn for which 41∣Rn41 \mid R_n.