OFFSET
1,1
COMMENTS
Corresponding numbers m > 1 such that a(n) divides m^m - 1 are m = (a(n) - 1)/n = {2,5,20,3,6,40,6,32,30,25,92,56,12,5,36,15,18,...}.
LINKS
Joseph L. Wetherell, Table of n, a(n) for n = 1..10000
PROG
(PARI) a(n) = forprime(p=3, , if (!((p-1) % n) && (m = (p-1)/n) && (m > 1) && !((m^m-1) % p), return (p)); ); \\ Michel Marcus, Nov 18 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Jan 22 2007
EXTENSIONS
Corrected a(47) and extended by Alexander Adamchuk, May 09 2010
STATUS
approved