OFFSET
1,6
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (1).
FORMULA
EXAMPLE
a(98) = 1000 mod 98 = 20 as 1000 = 98 * 10 + 20. - David A. Corneth, Mar 07 2019
MATHEMATICA
Mod[1000, Range[100]] (* Paolo Xausa, Nov 14 2023 *)
PROG
(PARI) a(n) = 1000 % n \\ David A. Corneth, Mar 07 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Mar 07 2019, following a suggestion from Charles Kusniec.
STATUS
approved