OFFSET
1,3
LINKS
Todor Szimeonov, A completive sequence.
MATHEMATICA
d[n_] := Floor[Sqrt[n] + 1]^2 - n; a[1] = 1; a[n_] := a[n] = d[a[n - 1] + n]; Array[a, 100] (* Amiram Eldar, Apr 03 2021 *)
PROG
(Python)
from math import isqrt
def aupton(terms):
alst = [1]
for n in range(2, terms+1):
alst.append((isqrt(alst[-1] + n)+1)**2 - alst[-1] - n)
return alst
print(aupton(79)) # Michael S. Branicky, Apr 03 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Todor Szimeonov, Apr 03 2021
STATUS
approved