Skip to content

A332056

OEIS Lean4

a(1) = 1, then a(n+1) = a(n) - (-1)^a(n) Sum_{k=1..n} a(k): if a(n) is odd, add the partial sum, else subtract.

offset: 1
codomain: ℤ
n123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
A33205612-114-316-518-7110-9112-11114-13116-15118-17120-19122-21124-23126-25128-27130-29132-31134-33136-35138-37140-39