OFFSET
0,2
COMMENTS
EXAMPLE
For 0 <= n <= 5, the smallest prime p = A073918(n) such that p-1 has n distinct prime factors is p = prime(n)# + 1, therefore a(n) = n + 1 is the index of the smallest prime not dividing p - 1.
For n = 6, the smallest prime p such that p - 1 has 6 distinct prime factors is prime(5)#*prime(8) + 1, therefore a(n) = 6.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, May 31 2018
STATUS
approved