OFFSET
1,4
FORMULA
a(n) = (floor(sqrt(n)))! mod n.
EXAMPLE
a(17) = (floor(sqrt(17)))! mod 17 = (floor(4.12...))! mod 17 = 4! mod 17 = 24 mod 17 = 7.
MATHEMATICA
Table[Mod[Floor[Sqrt[n]]!, n], {n, 90}] (* Harvey P. Dale, Feb 15 2022 *)
PROG
(Magma) [ Factorial(Floor(Sqrt(n))) mod n: n in [1..84] ];
CROSSREFS
KEYWORD
nonn
AUTHOR
Thomas Kerscher (Thomas.Kerscher(AT)web.de), Feb 26 2009
EXTENSIONS
Edited and a(1) corrected by Klaus Brockhaus, May 27 2009
STATUS
approved