OFFSET
1,3
COMMENTS
a(n) = 1 iff n is in A067946. - Robert Israel, Dec 26 2014
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
a(3) = 5 because 5^3 = 125 and 125 == 5 mod (2 * 3).
a(4) = 1 because 5^4 = 625 and 625 == 1 mod (2 * 4).
MAPLE
seq(5 &^n mod (2*n), n = 1 .. 100); # Robert Israel, Dec 26 2014
MATHEMATICA
Table[PowerMod[5, w, 2w], {w, 1, 100}]
PROG
(PARI) vector(100, n, lift(Mod(5, 2*n)^n)) \\ Michel Marcus, Dec 29 2014
(Magma) [Modexp(5, n, 2*n): n in [1..80]]; // Vincenzo Librandi, Oct 19 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Labos Elemer, Apr 30 2003
STATUS
approved