OFFSET
2,3
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 2..10000
EXAMPLE
n least prime root(n) difference
2 2 2 0
3 3 3 0
4 2 4 -2
5 5 5 0
6 2 6 -4
7 7 7 0
8 2 8 -6
9 3 9 -6
10 2 1 1
PROG
(PARI) a(n)=factor(n)[1, 1]-(n-1)%9-1
vector(100, n, a(n+1)) \\ Jens Kruse Andersen, Aug 23 2014
CROSSREFS
KEYWORD
easy,sign,base
AUTHOR
Odimar Fabeny, Aug 21 2014
EXTENSIONS
Multiple corrections by Jens Kruse Andersen, Aug 23 2014
STATUS
approved