OFFSET
1,3
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 8, 1^2 == 3^2 == 5^2 == 7^2 == 1 (mod 8) so a(8) = 1*3*5*7 = 105.
For n = 12, 1^2 == 5^2 == 7^2 == 11^2 == 1 (mod 12) so a(12) = 1*5*7*11 = 385.
MAPLE
f:= proc(n) convert(map(t -> rhs(op(t)), [msolve(x^2=1, n)]), `*`) end proc:
f(1):= 1:
map(f, [$1..100]); # Robert Israel, Nov 05 2019
PROG
(PARI) a(n) = prod(i=1, n, i^(Mod(i^2-1, n)==0))
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Jianing Song, Sep 05 2018
STATUS
approved