OFFSET
1,2
COMMENTS
Essentially the same as A019530. - R. J. Mathar, Sep 30 2008
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
a(8) = 4 because (8+1)^1 mod 8 = 1, (8+2)^2 mod 8 = 4, (8+3)^3 mod 8 = 3 and (8+4)^4 mod 8 = 0.
PROG
(PARI) { for (n=1, 1000, m=1; while ((n+m)^m % n, m++); write("b066069.txt", n, " ", m) ) } \\ Harry J. Smith, Nov 09 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Ayres (jonathan.ayres(AT)btinternet.com), Dec 02 2001
STATUS
approved