OFFSET
1,2
COMMENTS
If prime(n) = p then a(n) is a divisor of p-1. - Amarnath Murthy, Nov 11 2002
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..1000
P. De Geest, Repunits and Their Factors
Amarnath Murthy, On the divisors of Smarandache Unary Sequence, Smarandache Notions Journal, Vol. 11, 2000.
A. A. A. Steward, Factorization of Repunits[up to R(196)]. Cached copy, Sep 25 2000.
Michael De Vlieger, Records and positions in first 1000 terms of A071126
EXAMPLE
The 13th prime, 41, divides the repunit 11111, the smallest among all R(5k) which are multiples of 41.
MATHEMATICA
Table[Function[p, If[Divisible[10, p], 0, k = {1}; While[! Divisible[ FromDigits@ k, p], AppendTo[k, 1]]; Length@ k]]@ Prime@ n, {n, 67}] (* Michael De Vlieger, May 20 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, May 28 2002
STATUS
approved