OFFSET
1,4
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 3, 2*n+1 = 7, (1/2)^6 == 4^6 == 1 (mod 7) so a(3)=1.
MAPLE
seq((1/2 mod (2*n+1)) &^(2*n) mod (2*n+1), n=1..200);
PROG
(PARI) a(n) = (1/2)^(2*n) % (2*n+1); \\ Michel Marcus, Nov 06 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel and Thomas Ordowski, Nov 05 2017
STATUS
approved