OFFSET
1,2
COMMENTS
The sequence is finite - after 2020 terms, a(2020) = -669, the sum of all terms is 4 so the next term would have to be 4 less than the divisors with magnitude > 1 of 2021, namely 2017, 43, 39, -47, -51, -2025. However these six numbers have all previously occurred so the sequence terminates.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..2020
EXAMPLE
a(7) = 4 as Sum_{k = 1..7} a(k) = 1 - 3 - 1 + 5 + 3 - 2 + 4 = 7, and 4 is the smallest magnitude number not occurring earlier that forms a sum with magnitude > 1 that is a divisor of 7.
CROSSREFS
KEYWORD
sign,fini,full
AUTHOR
Scott R. Shannon, Oct 15 2022
STATUS
approved