OFFSET
1,2
COMMENTS
LINKS
Rémy Sigrist, C++ program for A117986
FORMULA
Apparently, a(p) = p + 1 for any prime number p. - Rémy Sigrist, Sep 19 2019
EXAMPLE
For n=5 the six functions are (0,0,0,0,0), (0,1,1,1,1), (1,1,1,1,1), (0,1,4,4,1), (0,1,3,2,4), (0,1,2,3,4). For the 5th of these, (0,1,3,2,4), the x=2, y=3 case is verified by the calculations f(2*3 mod 4) = f(1) = 1 and f(2)*f(3) mod 5 = 3*2 mod 5 = 1.
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
John W. Layman, Apr 07 2006
EXTENSIONS
More terms from Rémy Sigrist, Sep 19 2019
STATUS
approved