1,6

David A. Corneth, Table of n, a(n) for n = 1..10000

Index entries for linear recurrences with constant coefficients, signature (1).

a(n) = 1000 for n >= 1001.

a(n) = 0 <=> n in { A018767 }.

a(n) = 1 <=> n > 1 and n in { A018766 }.

a(98) = 1000 mod 98 = 20 as 1000 = 98 * 10 + 20. - David A. Corneth, Mar 07 2019

(PARI) a(n) = 1000 % n \\ David A. Corneth, Mar 07 2019

Cf. A018766, A018767, A048158, A051127, A090976, A324471.

Sequence in context: A259825 A276449 A056945 * A070683 A195785 A184187

Adjacent sequences: A324469 A324470 A324471 * A324473 A324474 A324475

nonn,easy

N. J. A. Sloane, Mar 07 2019, following a suggestion from Charles Kusniec.

approved