OFFSET
1,4
COMMENTS
In other words, for n > 0, a(n+1) = o(n)^2 - a(n) where o is the ordinal transform of the sequence.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Scatterplot of the first 2^20 terms
EXAMPLE
The first terms, alongside their ordinal transform, are:
n a(n) o(n)
-- ---- ----
1 0 1
2 1 1
3 0 2
4 4 1
5 -3 1
6 4 2
7 0 3
8 9 1
9 -8 1
10 9 2
PROG
(PARI) for (n=1, #(a=vector(65)), print1 (a[n]=if (n>1, sum(k=1, n-1, a[k]==a[n-1])^2-a[n-1])", "))
CROSSREFS
KEYWORD
sign,look
AUTHOR
Rémy Sigrist, Nov 26 2019
STATUS
approved