OFFSET
1,7
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
a(6) = 720 mod 8 = 0, a(7)= 5040 mod 13 = 9.
MATHEMATICA
Table[Mod[n!, Fibonacci[n]], {n, 50}] (* T. D. Noe, Apr 19 2012 *)
PROG
(Python)
prpr = 0
prev = 1
fa = 1
for i in range(2, 50):
print(fa % prev, end=', ')
fa *= i
current = prev + prpr
prpr = prev
prev = current
(PARI) a(n) = n!%fibonacci(n); \\ Bill McEachen, Feb 03 2014
(Magma) [Factorial(n) mod Fibonacci(n): n in [1..50]]; // Vincenzo Librandi, Feb 04 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Apr 19 2012
STATUS
approved