OFFSET
1,1
EXAMPLE
a(1)=5 because 5(2-1)-1=4 is divisible by 2^2.
PROG
(PARI) a(n) = {my(p = prime(n), k = 2); while ((k*(p-1)-1) % p^2, k++); k; } \\ Michel Marcus, Sep 28 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Added constraint on k to the definition, otherwise a(1)=1 - R. J. Mathar, Oct 10 2010
STATUS
approved