OFFSET
1,1
PROG
(PARI) lista(nn) = {nn = max(nn, 3); my(va = vector(nn)); va[1] = 1; va[2] = 1; va[3] = 1; for(n=4, nn, va[n] = abs(va[n-1] - va[n - 1 - 2^logint(n-2, 2)])); va; } \\ Petros Hadjicostas, May 15 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved