OFFSET
1,4
LINKS
T. D. Noe, Table of n, a(n) for n=1..5000
MATHEMATICA
Table[Mod[Fibonacci[n], n+1], {n, 6!}] (* Vladimir Joseph Stephan Orlovsky, Feb 18 2010 *)
PROG
(Sage)
def A002752(n): return mod(fibonacci(n - 1), n)
# Assuming offset 0 this prepends a(0) = 1.
print([A002752(n) for n in range(79)]) # Peter Luschny, Apr 11 2022
(PARI) a(n) = fibonacci(n-1) % n; \\ Michel Marcus, Apr 11 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
John C. Hallyburton, Jr. (hallyb(AT)evms.ENET.dec.com)
STATUS
approved